Plane: support new RADIO_STATUS msg

This commit is contained in:
Andrew Tridgell 2013-08-24 17:59:02 +10:00
parent d5e28e72cc
commit 364790414c
1 changed files with 2 additions and 1 deletions

View File

@ -908,7 +908,7 @@ GCS_MAVLINK::update(void)
if (mavlink_parse_char(chan, c, &msg, &status)) {
// we exclude radio packets to make it possible to use the
// 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;
}
handleMessage(&msg);
@ -1997,6 +1997,7 @@ mission_failed:
#endif // MOUNT == ENABLED
case MAVLINK_MSG_ID_RADIO:
case MAVLINK_MSG_ID_RADIO_STATUS:
{
mavlink_radio_t packet;
mavlink_msg_radio_decode(msg, &packet);