MAVLink: make it possible to enter the CLI over the radio

this only works on the APM2, where UART0 is also the radio port
This commit is contained in:
Andrew Tridgell 2012-11-21 14:11:05 +11:00
parent 8f108e2eb3
commit 704da2a5d9
3 changed files with 15 additions and 3 deletions

View File

@ -763,7 +763,11 @@ GCS_MAVLINK::update(void)
// Try to get a new message
if (mavlink_parse_char(chan, c, &msg, &status)) {
mavlink_active = 1;
// we exclude radio packets to make it possible to use the
// CLI over the radio
if (msg.msgid != MAVLINK_MSG_ID_RADIO) {
mavlink_active = true;
}
handleMessage(&msg);
}
}

View File

@ -806,7 +806,11 @@ GCS_MAVLINK::update(void)
// Try to get a new message
if (mavlink_parse_char(chan, c, &msg, &status)) {
mavlink_active = true;
// we exclude radio packets to make it possible to use the
// CLI over the radio
if (msg.msgid != MAVLINK_MSG_ID_RADIO) {
mavlink_active = true;
}
handleMessage(&msg);
}
}

View File

@ -804,7 +804,11 @@ GCS_MAVLINK::update(void)
// Try to get a new message
if (mavlink_parse_char(chan, c, &msg, &status)) {
mavlink_active = 1;
// we exclude radio packets to make it possible to use the
// CLI over the radio
if (msg.msgid != MAVLINK_MSG_ID_RADIO) {
mavlink_active = true;
}
handleMessage(&msg);
}
}