1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Added battery warnings based on consumption.

This commit is contained in:
Michael Keller 2016-11-25 21:31:39 +13:00 committed by mikeller
parent 82e78bc249
commit 1c2bbf9c1a
5 changed files with 119 additions and 58 deletions

View file

@ -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