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:
parent
b020917c4b
commit
afe704bbd9
4 changed files with 22 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue