Hello!
I have a ArduCopter with Raspberry Pi on board.
Raspberry Pi is connected to APM with usb cable.
On the Raspberry Pi works simple python script (without mavproxy, using only serial lib), it reads and parsed messages with some Message ID.
It works awesome.
But how can i to send new waypoint to APM?
i have read this http://dev.ardupilot.com/wiki/mavlink-commands/
0×10 / 16 MAV_CMD_NAV_WAYPOINT - altitude lat lon
How to create message with new waypoint manually (for writting to serial port)?
I need to make massege looks like this?
[MAV_CMD_NAV_WAYPOINT,1 byte]+[alt,8 bytes]+[lon,8 bytes]+[lat,8 bytes]+[crc,2 bytes]
Replies
You really should use pymavlink. Have a look at the implemention here:
https://github.com/tridge/MAVProxy/blob/master/MAVProxy/modules/mav...
https://github.com/mavlink/mavlink/blob/master/pymavlink/mavwp.py
Also read through common.xml in the mavlink sources for the protocol definition, and this site:
http://qgroundcontrol.org/mavlink/start
Thank you! Mavproxy is very good.
I can't find, how to run it in background without stopping working...
I need to use console after starting it.
Someone can help me?
Did you figure it out?
Thanks
The best way to start would be to look on how the waypoints are sent by MissionPlaner. Setup three XBees (A,B1,B2) where two B have identic setup. Put the A as the MissionPlaner port, the B1 to APM and listen the B2 by some serial terminal to read and understand MissionPlanner messages.
Thanks, but i don't have xbee.