diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-10-11 23:51:03 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-10-11 23:51:03 +0200 |
commit | 153f39257de05d0f5fecad36f16c724233f32491 (patch) | |
tree | 5a15c1d71809bb632001c82ea989c5303647a701 | |
parent | b7b48047910d0e25d3349b7dade0b8d34649fdc3 (diff) | |
download | px4-firmware-153f39257de05d0f5fecad36f16c724233f32491.tar.gz px4-firmware-153f39257de05d0f5fecad36f16c724233f32491.tar.bz2 px4-firmware-153f39257de05d0f5fecad36f16c724233f32491.zip |
position_estimator_inav: don't reset velocity estimate when landed
-rw-r--r-- | src/modules/position_estimator_inav/position_estimator_inav_main.c | 3 |
1 files changed, 0 insertions, 3 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 81bbaa658..55ad725e7 100644 --- a/src/modules/position_estimator_inav/position_estimator_inav_main.c +++ b/src/modules/position_estimator_inav/position_estimator_inav_main.c @@ -1052,9 +1052,6 @@ int position_estimator_inav_thread_main(int argc, char *argv[]) landed = false; landed_time = 0; } - /* reset xy velocity estimates when landed */ - x_est[1] = 0.0f; - y_est[1] = 0.0f; } else { if (alt_disp2 < land_disp2 && thrust < params.land_thr) { |