Hello,
For some reason, I could not find such a simple question on the forum..
I try to send mission commands to AQ6, according to description here: http://qgroundcontrol.org/mavlink/waypoint_protocol
I do not receive WAYPOINT_REQUEST_LIST (I receive only messages with IDs: 30, 35, 36, 26, 24, 29, 1 and 0, which are heartbeat, status of the UAV, etc.). https://pixhawk.ethz.ch/mavlink/
I send to serial port Waypoint_Count (with a number of WPs equal to 1) and listen on a serial port. I see only msg.msgid-s mentioned above (0,1, 30, 35, etc).
Do you have any ideas what I should check and how to fix the issue that the AQ6 doesn't send me Waypoint_Request ? (I expect to see #40, with Mission_Request).
What I use: AQ6 (I think the version of the firmware is 6.6), RaspberryPi2 (I connect it to a serial port of the AQ6), Wi-Fi module connected to RaspberryPi.
Thank you for your time!
P.S.1.
I send amount of waypoints as follows:
uint8_t buf[MAVLINK_MAX_PACKET_LEN];
mavlink_msg_mission_count_pack(UGVSYSID, UGVCOMPID, &msg, Dquad2SYSID, Dquad2COMPID, 1);
uint16_t len = mavlink_msg_to_send_buffer(buf, &msg);
serial.serialsendf((const char*)buf,len);
I read serial port as follows:
serial.serialreceive(&buf2,1);
int request = mavlink_parse_char(MAVLINK_COMM_0, buf2, &msg_rec, &status);
if(msg_rec.msgid!=30 && msg_rec.msgid!=35 && msg_rec.msgid!=36 && msg_rec.msgid!=26 && msg_rec.msgid!=24 && msg_rec.msgid!=29 && msg_rec.msgid!=1 && msg_rec.msgid!=0){
printf("Received from serial port, id: %d \n", msg_rec.msgid);
}
It receives nothing related to Waypoint_Request...