forked from Archive/PX4-Autopilot
fix vehicle_airspeed_poll logic: _tecs.enable_airspeed was not called before on valid airspeed
This commit is contained in:
parent
2fd1aed6be
commit
ef7a425a45
|
@ -501,7 +501,6 @@ FixedwingPositionControl::vehicle_airspeed_poll()
|
||||||
orb_copy(ORB_ID(airspeed), _airspeed_sub, &_airspeed);
|
orb_copy(ORB_ID(airspeed), _airspeed_sub, &_airspeed);
|
||||||
_airspeed_valid = true;
|
_airspeed_valid = true;
|
||||||
_airspeed_last_valid = hrt_absolute_time();
|
_airspeed_last_valid = hrt_absolute_time();
|
||||||
return true;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -514,7 +513,7 @@ FixedwingPositionControl::vehicle_airspeed_poll()
|
||||||
/* update TECS state */
|
/* update TECS state */
|
||||||
_tecs.enable_airspeed(_airspeed_valid);
|
_tecs.enable_airspeed(_airspeed_valid);
|
||||||
|
|
||||||
return false;
|
return airspeed_updated;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue