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:
commit
5981273cc4
7 changed files with 65 additions and 20 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue