AP_OSD: make OSD rssi scale match link quality (0-100)

This commit is contained in:
Henry Wurzburg 2022-03-09 11:29:30 -06:00 committed by Andrew Tridgell
parent b112f8dba1
commit 73006d9a7c

View File

@ -1318,7 +1318,7 @@ void AP_OSD_Screen::draw_rssi(uint8_t x, uint8_t y)
{ {
AP_RSSI *ap_rssi = AP_RSSI::get_singleton(); AP_RSSI *ap_rssi = AP_RSSI::get_singleton();
if (ap_rssi) { if (ap_rssi) {
const uint8_t rssiv = ap_rssi->read_receiver_rssi() * 99; const uint8_t rssiv = ap_rssi->read_receiver_rssi() * 100;
backend->write(x, y, rssiv < osd->warn_rssi, "%c%2d", SYMBOL(SYM_RSSI), rssiv); backend->write(x, y, rssiv < osd->warn_rssi, "%c%2d", SYMBOL(SYM_RSSI), rssiv);
} }
} }