1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Merge pull request #3510 from brycedjohnson/LVC

Add in Low Voltage Cutout option/Increase Vbat filtering/Improved cell detection
This commit is contained in:
Michael Keller 2017-08-17 19:48:52 +12:00 committed by GitHub
commit 5981273cc4
7 changed files with 65 additions and 20 deletions

View file

@ -131,14 +131,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();
}