mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 15:40:35 +08:00
add parsing of host frames for D type telemetry
This commit is contained in:
committed by
Lorenz Meier
parent
3edf304e55
commit
47337eb4a5
@@ -713,9 +713,9 @@ void PX4FMU::fill_rc_in(uint16_t raw_rc_count,
|
||||
_rc_in.timestamp_last_signal = _rc_in.timestamp_publication;
|
||||
_rc_in.rc_ppm_frame_length = 0;
|
||||
|
||||
if (rssi == -1) {
|
||||
_rc_in.rssi =
|
||||
(!frame_drop) ? RC_INPUT_RSSI_MAX : (RC_INPUT_RSSI_MAX / 2);
|
||||
/* don't touch rssi if no value was provided */
|
||||
if (rssi >= 0) {
|
||||
_rc_in.rssi = rssi;
|
||||
}
|
||||
|
||||
_rc_in.rc_failsafe = failsafe;
|
||||
|
||||
Reference in New Issue
Block a user