Rover: support new RADIO_STATUS msg

This commit is contained in:
Andrew Tridgell 2013-08-24 17:58:37 +10:00
parent 7159c539e6
commit 4f6bd0e3c9

View File

@ -766,7 +766,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);
@ -1739,6 +1739,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
#endif // MOUNT == ENABLED
case MAVLINK_MSG_ID_RADIO:
case MAVLINK_MSG_ID_RADIO_STATUS:
{
mavlink_radio_t packet;
mavlink_msg_radio_decode(msg, &packet);