mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 04:40:35 +08:00
fw att ctrl: airspeed check: remove unnecessary cast
This commit is contained in:
@@ -633,7 +633,7 @@ FixedwingAttitudeControl::task_main()
|
||||
/* if airspeed is smaller than min, the sensor is not giving good readings */
|
||||
if ((_airspeed.indicated_airspeed_m_s < 0.5f * _parameters.airspeed_min) ||
|
||||
!isfinite(_airspeed.indicated_airspeed_m_s) ||
|
||||
(float)hrt_elapsed_time(&_airspeed.timestamp) > 1e6f) {
|
||||
hrt_elapsed_time(&_airspeed.timestamp) > 1e6) {
|
||||
airspeed = _parameters.airspeed_trim;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user