RSSI field init

This commit is contained in:
Lorenz Meier 2014-01-18 01:11:36 +01:00
parent 4d7e99fd6c
commit dd9df7b1b0
1 changed files with 1 additions and 1 deletions

View File

@ -1454,7 +1454,7 @@ 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;
rc_val.rssi = (_servorail_status.rssi_v / 3.3f) * UINT8_MAX;
/* lazily advertise on first publication */
if (_to_input_rc == 0) {