aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_att_control
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-03-12 10:02:39 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-03-12 10:02:39 +0100
commitd9d0e60bd574b135d98bdaa48c4b32056f815217 (patch)
treede0bd50ff133d104f302f79f1a841f44cf9c788c /src/modules/fw_att_control
parenta977ff2b6295bd4bac614a854ecc35e1b9b2d75c (diff)
downloadpx4-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/modules/fw_att_control')
-rw-r--r--src/modules/fw_att_control/fw_att_control_main.cpp2
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 {