mirror of https://github.com/ArduPilot/ardupilot
Plane: support new RADIO_STATUS msg
This commit is contained in:
parent
d5e28e72cc
commit
364790414c
|
@ -908,7 +908,7 @@ GCS_MAVLINK::update(void)
|
||||||
if (mavlink_parse_char(chan, c, &msg, &status)) {
|
if (mavlink_parse_char(chan, c, &msg, &status)) {
|
||||||
// we exclude radio packets to make it possible to use the
|
// we exclude radio packets to make it possible to use the
|
||||||
// CLI over the radio
|
// CLI over the radio
|
||||||
if (msg.msgid != MAVLINK_MSG_ID_RADIO) {
|
if (msg.msgid != MAVLINK_MSG_ID_RADIO && msg.msgid != MAVLINK_MSG_ID_RADIO_STATUS) {
|
||||||
mavlink_active = true;
|
mavlink_active = true;
|
||||||
}
|
}
|
||||||
handleMessage(&msg);
|
handleMessage(&msg);
|
||||||
|
@ -1997,6 +1997,7 @@ mission_failed:
|
||||||
#endif // MOUNT == ENABLED
|
#endif // MOUNT == ENABLED
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_RADIO:
|
case MAVLINK_MSG_ID_RADIO:
|
||||||
|
case MAVLINK_MSG_ID_RADIO_STATUS:
|
||||||
{
|
{
|
||||||
mavlink_radio_t packet;
|
mavlink_radio_t packet;
|
||||||
mavlink_msg_radio_decode(msg, &packet);
|
mavlink_msg_radio_decode(msg, &packet);
|
||||||
|
|
Loading…
Reference in New Issue