When I run my Python code, I return an output as a .waypoints file and I want to automatically transfer this route to mission planner after the code runs. How can I do this?
I thought about sending it via pymavlink , but I'm not sure if it's correct and how to do it.
When I run my Python code, I return an output as a .waypoints file and I want to automatically transfer this route to mission planner after the code runs. How can I do this?
I thought about sending it via pymavlink , but I'm not sure if it's correct and how to do it.
Share Improve this question asked Mar 5 at 20:42 Bedirhan ErenBedirhan Eren 11 bronze badge 1 |1 Answer
Reset to default 0Mission planner expects missions in a certain format. Does your waypoints file follow the same format? A small mission might look like:
QGC WPL 110
0 1 0 16 0 0 0 0 -22.0945473 47.4938965 193.010000 1
1 0 3 22 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 100.000000 1
2 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -21.41599770 47.62435910 100.000000 1
3 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -21.57571890 48.15032960 100.000000 1
4 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -22.29417910 47.88940430 100.000000 1
5 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 -22.16451430 47.46231080 100.000000 1
You can/should double check by uploading with your custom GCS, and downloading the mission from the drone using mission planner. Then compare this mission to your waypoint file.
pymavlink
but if it works for you then use it - don't bother if it correct. – furas Commented Mar 6 at 7:40