mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Add BATT NOT FULL warning to OSD
Shows BATT NOT FULL when the connected battery has an everage cell voltage of less than 0.2v lower then vbatmaxcellvoltage (when the craft has yet to be armed) Intended as a reminder to make sure pilots fly with a fresh battery Adds an additional configuration option for the voltage at which a cell is "full"
This commit is contained in:
parent
27b146e274
commit
20f7c77089
5 changed files with 101 additions and 1 deletions
|
@ -596,6 +596,13 @@ static void osdDrawSingleElement(uint8_t item)
|
|||
break;
|
||||
}
|
||||
|
||||
/* Show warning if battery is not fresh */
|
||||
if (!ARMING_FLAG(WAS_EVER_ARMED) && (getBatteryState() == BATTERY_OK)
|
||||
&& getBatteryAverageCellVoltage() < batteryConfig()->vbatfullcellvoltage) {
|
||||
tfp_sprintf(buff, "BATT NOT FULL");
|
||||
break;
|
||||
}
|
||||
|
||||
/* Show battery state warning */
|
||||
switch (getBatteryState()) {
|
||||
case BATTERY_WARNING:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue