aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-17 14:07:33 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-17 14:07:33 +0100
commitf20f85f0e3c61ce754fd6d9d73745eaa925b3b04 (patch)
tree0c438ad5cdfa0cf0c0c8e6b4ba987377b2e9adb3 /src/modules/ekf_att_pos_estimator
parent9d7a4a59fd37cb0dd2fa5534786f87a933e9f6c0 (diff)
downloadpx4-firmware-f20f85f0e3c61ce754fd6d9d73745eaa925b3b04.tar.gz
px4-firmware-f20f85f0e3c61ce754fd6d9d73745eaa925b3b04.tar.bz2
px4-firmware-f20f85f0e3c61ce754fd6d9d73745eaa925b3b04.zip
Do not spam filter resets in static mode
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
index 685f5e12f..00900c995 100644
--- a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
+++ b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
@@ -613,8 +613,11 @@ FixedwingEstimator::check_filter_state()
warn_index = max_warn_index;
}
- warnx("reset: %s", feedback[warn_index]);
- mavlink_log_critical(_mavlink_fd, "[ekf check] %s", feedback[warn_index]);
+ // Do not warn about accel offset if we have no position updates
+ if (!(warn_index == 5 && _ekf->staticMode)) {
+ warnx("reset: %s", feedback[warn_index]);
+ mavlink_log_critical(_mavlink_fd, "[ekf check] %s", feedback[warn_index]);
+ }
}
struct estimator_status_report rep;