aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2013-11-02 17:33:45 +0100
committerThomas Gubler <thomasgubler@gmail.com>2013-11-02 17:33:45 +0100
commitef7a425a45397fed510920b98a4ad08e62170f4c (patch)
tree6681407743bffd2150b2d6cb578d5fbec3f0a86d /src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
parent2fd1aed6be03de42d09c062871838ee7e852aa4a (diff)
downloadpx4-firmware-ef7a425a45397fed510920b98a4ad08e62170f4c.tar.gz
px4-firmware-ef7a425a45397fed510920b98a4ad08e62170f4c.tar.bz2
px4-firmware-ef7a425a45397fed510920b98a4ad08e62170f4c.zip
fix vehicle_airspeed_poll logic: _tecs.enable_airspeed was not called before on valid airspeed
Diffstat (limited to 'src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp')
-rw-r--r--src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
index ffa7915a7..28ca9776a 100644
--- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
+++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
@@ -501,7 +501,6 @@ FixedwingPositionControl::vehicle_airspeed_poll()
orb_copy(ORB_ID(airspeed), _airspeed_sub, &_airspeed);
_airspeed_valid = true;
_airspeed_last_valid = hrt_absolute_time();
- return true;
} else {
@@ -514,7 +513,7 @@ FixedwingPositionControl::vehicle_airspeed_poll()
/* update TECS state */
_tecs.enable_airspeed(_airspeed_valid);
- return false;
+ return airspeed_updated;
}
void