mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 00:41:36 +08:00
TECS: set _ratio_underspeed to 0 if airspeed disabled
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -353,7 +353,7 @@ TECSControl::SpecificEnergyRates TECSControl::_calcSpecificEnergyRates(const Alt
|
|||||||
|
|
||||||
void TECSControl::_detectUnderspeed(const Input &input, const Param ¶m, const Flag &flag)
|
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;
|
_ratio_undersped = 0.0f;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user