1
0
Fork 0
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:
borisbstyle 2016-11-27 13:25:43 +01:00 committed by GitHub
commit 417d27dad2
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