mirror of https://github.com/ArduPilot/ardupilot
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:
parent
68ae91a729
commit
7436974e2f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue