forked from Archive/PX4-Autopilot
TECS: set _ratio_underspeed to 0 if airspeed disabled
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
634ad3893e
commit
740bf63fa7
|
@ -353,7 +353,7 @@ TECSControl::SpecificEnergyRates TECSControl::_calcSpecificEnergyRates(const Alt
|
|||
|
||||
void TECSControl::_detectUnderspeed(const Input &input, const Param ¶m, const Flag &flag)
|
||||
{
|
||||
if (!flag.detect_underspeed_enabled) {
|
||||
if (!flag.detect_underspeed_enabled || !flag.airspeed_enabled) {
|
||||
_ratio_undersped = 0.0f;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue