mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Link Quality without Aux
fix indent , move unused remove premature optimisation Use prior code for osd element calc unit test add crsf for scaleCrsfLq unittest typo rx 0-100 elements simplify osdElementLinkQuality refactor share one 16 bit var
This commit is contained in:
parent
7cd030559d
commit
e9a406f447
11 changed files with 642 additions and 24 deletions
|
@ -341,7 +341,7 @@ static void osdResetStats(void)
|
|||
stats.max_g_force = 0;
|
||||
stats.max_esc_temp = 0;
|
||||
stats.max_esc_rpm = 0;
|
||||
stats.min_link_quality = 99; // percent
|
||||
stats.min_link_quality = (linkQualitySource == LQ_SOURCE_RX_PROTOCOL_CRSF) ? 300 : 99; // CRSF : percent
|
||||
}
|
||||
|
||||
static void osdUpdateStats(void)
|
||||
|
@ -613,7 +613,7 @@ static uint8_t osdShowStats(uint16_t endBatteryVoltage, int statsRowCount)
|
|||
|
||||
#ifdef USE_RX_LINK_QUALITY_INFO
|
||||
if (osdStatGetState(OSD_STAT_MIN_LINK_QUALITY)) {
|
||||
itoa(stats.min_link_quality, buff, 10);
|
||||
tfp_sprintf(buff, "%d", stats.min_link_quality);
|
||||
strcat(buff, "%");
|
||||
osdDisplayStatisticLabel(top++, "MIN LINK", buff);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue