最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - How to automatically import .waypoints file into mission planner? - Stack Overflow

programmeradmin1浏览0评论

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
  • I don't know pymavlink but if it works for you then use it - don't bother if it correct. – furas Commented Mar 6 at 7:40
Add a comment  | 

1 Answer 1

Reset to default 0

Mission 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.

发布评论

评论列表(0)

  1. 暂无评论