mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #1658 from mikeller/add_consumption_alerts
Added battery warnings based on consumption.
This commit is contained in:
commit
417d27dad2
5 changed files with 119 additions and 58 deletions
|
@ -430,6 +430,9 @@ void resetBatteryConfig(batteryConfig_t *batteryConfig)
|
|||
batteryConfig->batteryCapacity = 0;
|
||||
batteryConfig->currentMeterType = CURRENT_SENSOR_ADC;
|
||||
batteryConfig->batterynotpresentlevel = 55; // VBAT below 5.5 V will be igonored
|
||||
batteryConfig->useVBatAlerts = true;
|
||||
batteryConfig->useConsumptionAlerts = false;
|
||||
batteryConfig->consumptionWarningPercentage = 10;
|
||||
}
|
||||
|
||||
#ifdef SWAP_SERIAL_PORT_0_AND_1_DEFAULTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue