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

Add battery warning beeper. Update MSP_MISC/MSP_SET_MISC.

Note the old beeper was essentially 'battery critical'.
This commit is contained in:
Dominic Clifton 2014-12-19 22:16:13 +00:00
parent 49cf725b41
commit 367eb79bd0
12 changed files with 67 additions and 24 deletions

View file

@ -104,7 +104,7 @@ profile_t *currentProfile;
static uint8_t currentControlRateProfileIndex = 0;
controlRateConfig_t *currentControlRateProfile;
static const uint8_t EEPROM_CONF_VERSION = 86;
static const uint8_t EEPROM_CONF_VERSION = 87;
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
{
@ -216,6 +216,7 @@ void resetBatteryConfig(batteryConfig_t *batteryConfig)
batteryConfig->vbatscale = VBAT_SCALE_DEFAULT;
batteryConfig->vbatmaxcellvoltage = 43;
batteryConfig->vbatmincellvoltage = 33;
batteryConfig->vbatwarningcellvoltage = 35;
batteryConfig->currentMeterOffset = 0;
batteryConfig->currentMeterScale = 400; // for Allegro ACS758LCB-100U (40mV/A)
batteryConfig->batteryCapacity = 0;