PX4IO: re-enable handling digital rssi

The px4io driver was ignoring the contents of PX4IO_P_RAW_RC_NRSSI
since digital rssi wasn't working properly. This change was made in
commit 41b127d40.

Now that PX4IO_P_RAW_RC_NRSSI is returning valid values for digital
rssi, we can re-enable its use.
This commit is contained in:
Kurt Kiefer
2018-07-22 14:39:47 -07:00
committed by Lorenz Meier
parent 7a5a135739
commit b111489825
+1 -1
View File
@@ -1759,7 +1759,7 @@ PX4IO::io_get_raw_rc_input(rc_input_values &input_rc)
input_rc.rc_ppm_frame_length = regs[PX4IO_P_RAW_RC_DATA];
if (!_analog_rc_rssi_stable) {
input_rc.rssi = 255;// we do not actually get digital RSSI regs[PX4IO_P_RAW_RC_NRSSI];
input_rc.rssi = regs[PX4IO_P_RAW_RC_NRSSI];
} else {
float rssi_analog = ((_analog_rc_rssi_volt - 0.2f) / 3.0f) * 100.0f;