mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 05:43:34 +08:00
Force RSSI to zero if RC is lost
This commit is contained in:
@@ -1760,6 +1760,11 @@ protected:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rc.rc_lost) {
|
||||||
|
/* RSSI is by definition zero */
|
||||||
|
msg.rssi = 0;
|
||||||
|
}
|
||||||
|
|
||||||
_mavlink->send_message(MAVLINK_MSG_ID_RC_CHANNELS, &msg);
|
_mavlink->send_message(MAVLINK_MSG_ID_RC_CHANNELS, &msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user