Browse Source

Do not spam filter resets in static mode

sbg
Lorenz Meier 10 years ago
parent
commit
f20f85f0e3
  1. 7
      src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

7
src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

@ -613,8 +613,11 @@ FixedwingEstimator::check_filter_state() @@ -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;

Loading…
Cancel
Save