The communication is between Arduino and SITL ArduPlane (ArduPlane V4.1.0dev).
With
mavlink_msg_request_data_stream_pack(2, 0, &msg, 1, 1, MAVStreams[i], MAVRates[i], 1);
I am able to receive various messages, however, for MAV_DATA_STREAM_ALL
(0), only 13 parameters appear.
If I use
mavlink_msg_command_long_pack(2, 0, &msg, 1, 1, 511, 0, 27, 100000, 0,0,0,0,2);
(511 is MAV_CMD_SET_MESSAGE_INTERVAL)
instead of
mavlink_msg_request_data_stream_pack(2, 0, &msg, 1, 1, MAVStreams[i], MAVRates[i], 1);
I am able to receive selectively the messages but only one of those that are sent with the stream anyway.
However, if I request any data not already received in the stream pack (as far as I know, #132 should be included in SRx_EXTRA3, but I am unable to receive it in any way), such as
DISTANCE_SENSOR (#132)
with…
mavlink_msg_command_long_pack(2, 0, &msg, 1, 1, 511, 0, 132, 100000, 0,0,0,0,2);
I do not receive this data.
From what I’ve gathered so far, it seems certain messages may not be supported by Ardupilot?
Thank you and excuse my noobieness (noobiedity?).