mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
GCS_MAVLink: use sending_mavlink1 method in send_rc_channels_raw
This commit is contained in:
parent
5dad0e5410
commit
8da978b913
@ -1541,14 +1541,9 @@ bool GCS_MAVLINK::sending_mavlink1() const
|
|||||||
|
|
||||||
void GCS_MAVLINK::send_rc_channels_raw() const
|
void GCS_MAVLINK::send_rc_channels_raw() const
|
||||||
{
|
{
|
||||||
mavlink_status_t *status = mavlink_get_channel_status(chan);
|
|
||||||
if (status == nullptr) {
|
|
||||||
// should not happen
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// for mavlink1 send RC_CHANNELS_RAW, for compatibility with OSD
|
// for mavlink1 send RC_CHANNELS_RAW, for compatibility with OSD
|
||||||
// implementations
|
// implementations
|
||||||
if (!(status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1)) {
|
if (!sending_mavlink1()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AP_RSSI *rssi = AP::rssi();
|
AP_RSSI *rssi = AP::rssi();
|
||||||
|
Loading…
Reference in New Issue
Block a user