mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
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
|
// Try to get a new message
|
||||||
if (mavlink_parse_char(chan, c, &msg, &status)) {
|
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);
|
handleMessage(&msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -806,7 +806,11 @@ GCS_MAVLINK::update(void)
|
|||||||
|
|
||||||
// Try to get a new message
|
// Try to get a new message
|
||||||
if (mavlink_parse_char(chan, c, &msg, &status)) {
|
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);
|
handleMessage(&msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -804,7 +804,11 @@ GCS_MAVLINK::update(void)
|
|||||||
|
|
||||||
// Try to get a new message
|
// Try to get a new message
|
||||||
if (mavlink_parse_char(chan, c, &msg, &status)) {
|
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);
|
handleMessage(&msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user