diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-12 10:02:39 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-12 10:02:39 +0100 |
commit | d9d0e60bd574b135d98bdaa48c4b32056f815217 (patch) | |
tree | de0bd50ff133d104f302f79f1a841f44cf9c788c /src | |
parent | a977ff2b6295bd4bac614a854ecc35e1b9b2d75c (diff) | |
download | px4-firmware-d9d0e60bd574b135d98bdaa48c4b32056f815217.tar.gz px4-firmware-d9d0e60bd574b135d98bdaa48c4b32056f815217.tar.bz2 px4-firmware-d9d0e60bd574b135d98bdaa48c4b32056f815217.zip |
fw att ctrl: airspeed check: remove unnecessary cast
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/fw_att_control/fw_att_control_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/fw_att_control/fw_att_control_main.cpp b/src/modules/fw_att_control/fw_att_control_main.cpp index 497d1d15a..bb674d6c9 100644 --- a/src/modules/fw_att_control/fw_att_control_main.cpp +++ b/src/modules/fw_att_control/fw_att_control_main.cpp @@ -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 { |