1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fixes from review.

This commit is contained in:
mikeller 2020-03-26 01:54:42 +13:00
parent b020917c4b
commit afe704bbd9
4 changed files with 22 additions and 12 deletions

View file

@ -363,6 +363,7 @@ void mixerInitProfile(void)
#if defined(USE_BATTERY_VOLTAGE_SAG_COMPENSATION)
vbatSagCompensationFactor = 0.0f;
if (currentPidProfile->vbat_sag_compensation > 0) {
//TODO: Make this voltage user configurable
vbatFull = CELL_VOLTAGE_FULL_CV;
vbatRangeToCompensate = vbatFull - batteryConfig()->vbatwarningcellvoltage;
if (vbatRangeToCompensate >= 0) {