add parsing of host frames for D type telemetry

This commit is contained in:
Mark Whitehorn
2016-01-28 22:27:28 -07:00
committed by Lorenz Meier
parent 3edf304e55
commit 47337eb4a5
4 changed files with 89 additions and 8 deletions

View File

@@ -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;