|
|
|
@ -279,7 +279,7 @@ void AP_Motors::update_lift_max_from_batt_voltage()
@@ -279,7 +279,7 @@ void AP_Motors::update_lift_max_from_batt_voltage()
|
|
|
|
|
_batt_voltage_min = max(_batt_voltage_min, _batt_voltage_max * 0.6f); |
|
|
|
|
|
|
|
|
|
// if disabled or misconfigured exit immediately
|
|
|
|
|
if(_batt_voltage_max <= 0 && _batt_voltage_min >= _batt_voltage_max) { |
|
|
|
|
if((_batt_voltage_max <= 0) || (_batt_voltage_min >= _batt_voltage_max)) { |
|
|
|
|
_batt_voltage_filt.reset(1.0f); |
|
|
|
|
_lift_max = 1.0f; |
|
|
|
|
return; |
|
|
|
|