1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 23:35:34 +03:00

Added Low Voltage Cutout for when it hits critical battery voltage.

Increased filtering on the filtered battery voltage - it wasn't very filtered before.
Better Cell detection using filtered vs unfiltered voltage
This commit is contained in:
Bryce Johnson 2017-07-13 10:56:23 -05:00
parent 5819ae3798
commit 35e1aab02b
7 changed files with 65 additions and 20 deletions

View file

@ -130,14 +130,11 @@ static void taskHandleSerial(timeUs_t currentTimeUs)
void taskBatteryAlerts(timeUs_t currentTimeUs)
{
UNUSED(currentTimeUs);
if (!ARMING_FLAG(ARMED)) {
// the battery *might* fall out in flight, but if that happens the FC will likely be off too unless the user has battery backup.
batteryUpdatePresence();
}
batteryUpdateStates();
batteryUpdateStates(currentTimeUs);
batteryUpdateAlarms();
}