aboutsummaryrefslogtreecommitdiff
path: root/src/modules/position_estimator_inav/position_estimator_inav_main.c
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-04-08 22:23:18 +0400
committerAnton Babushkin <anton.babushkin@me.com>2014-04-08 22:23:18 +0400
commit523606668f8c940357cd9c46b0995035eced7659 (patch)
treeb52e5478e253d795862b754ea4d82c2a6ba7785c /src/modules/position_estimator_inav/position_estimator_inav_main.c
parent13be060dae1bca1f4a38970a88a48243ab54d185 (diff)
downloadpx4-firmware-523606668f8c940357cd9c46b0995035eced7659.tar.gz
px4-firmware-523606668f8c940357cd9c46b0995035eced7659.tar.bz2
px4-firmware-523606668f8c940357cd9c46b0995035eced7659.zip
position_estimator_inav: make land detector more sensitive to LANDED -> IN AIR transitions
Diffstat (limited to 'src/modules/position_estimator_inav/position_estimator_inav_main.c')
-rw-r--r--src/modules/position_estimator_inav/position_estimator_inav_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/position_estimator_inav/position_estimator_inav_main.c b/src/modules/position_estimator_inav/position_estimator_inav_main.c
index 368fa6ee2..763b87563 100644
--- a/src/modules/position_estimator_inav/position_estimator_inav_main.c
+++ b/src/modules/position_estimator_inav/position_estimator_inav_main.c
@@ -763,7 +763,7 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
float thrust = armed.armed ? actuator.control[3] : 0.0f;
if (landed) {
- if (alt_disp2 > land_disp2 && thrust > params.land_thr) {
+ if (alt_disp2 > land_disp2 || thrust > params.land_thr) {
landed = false;
landed_time = 0;
}