RSSI and concurrent S.Bus output handling

This commit is contained in:
Lorenz Meier
2014-01-18 12:00:17 +01:00
parent dd9df7b1b0
commit d174998b45
4 changed files with 19 additions and 2 deletions
+4 -2
View File
@@ -1453,8 +1453,10 @@ PX4IO::io_publish_raw_rc()
/* set RSSI */
// XXX the correct scaling needs to be validated here
rc_val.rssi = (_servorail_status.rssi_v / 3.3f) * UINT8_MAX;
if (rc_val.input_source != RC_INPUT_SOURCE_PX4IO_SBUS) {
// XXX the correct scaling needs to be validated here
rc_val.rssi = (_servorail_status.rssi_v / 3.3f) * UINT8_MAX;
}
/* lazily advertise on first publication */
if (_to_input_rc == 0) {