mirror of https://github.com/ArduPilot/ardupilot
GCS_Mavlink: scale across full valid range
This commit is contained in:
parent
1856722b65
commit
617024bdfa
|
@ -5487,8 +5487,8 @@ uint8_t GCS_MAVLINK::receiver_rssi() const
|
||||||
return 255;
|
return 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t rssi = aprssi->read_receiver_rssi() * 255;
|
// scale across the full valid range
|
||||||
return (rssi < 255) ? rssi : 254;
|
return aprssi->read_receiver_rssi() * 254;
|
||||||
}
|
}
|
||||||
|
|
||||||
GCS &gcs()
|
GCS &gcs()
|
||||||
|
|
Loading…
Reference in New Issue