Hi,I am developing a generic autopilot board which communicates with Arduino Mission Planner using Mavlink Prootocl. I am trying to implement waypoint protocol.After receiving the Mission_Request_list from MP, I am sending the Mission_counts packet from the board( with 3 WP). Then I am getting the request for Waypoints. I am sending 3 WP but only first waypoint data (home location) is repeatedly shown in the Waypoint table in MP. Also only 2 WP details are shown (repeatedly showing home location)even if I am sending 3 different Waypoints.if(packet.seq==0){mavlink_msg_mission_item_pack(1, 200, &msg,1,200, 0, 0, 179, 1, 1, 1, 6780, 1, 0,60, 70, 120);len = mavlink_msg_to_send_buffer(buf, &msg);UART_2_PutArray(buf, len);}if(packet.seq==1){mavlink_msg_mission_item_pack(1, 200, &msg,1,200, 1, 0, 16, 0, 1, 1, 6780, 1, 0,65, 85, 100);len = mavlink_msg_to_send_buffer(buf, &msg);UART_2_PutArray(buf, len);}if(packet.seq==2){mavlink_msg_mission_item_pack(1, 200, &msg,1,200, 2, 0, 16, 0, 1, 1, 6780, 1, 0,90, 80, 130);len = mavlink_msg_to_send_buffer(buf, &msg);UART_2_PutArray(buf, len);}Is the sequence number of each packet correct?? What could be the problem?? :'(
You need to be a member of diydrones to add comments!
Replies
please look here
http://qgroundcontrol.org/mavlink/waypoint_protocol