diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-05 09:34:22 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-05 09:34:22 +0100 |
commit | 92135d155d36096fad5c215f119cca166f6ac611 (patch) | |
tree | da687cb8af77cec3fe09edb2373c22c038369413 /src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | |
parent | 0f1a7e7b5b699601886adec5215bf818b050a758 (diff) | |
parent | 6bd586c8373607faeb0e6eeb1135c9623ce9954e (diff) | |
download | px4-firmware-92135d155d36096fad5c215f119cca166f6ac611.tar.gz px4-firmware-92135d155d36096fad5c215f119cca166f6ac611.tar.bz2 px4-firmware-92135d155d36096fad5c215f119cca166f6ac611.zip |
Merge remote-tracking branch 'upstream/master' into ROS_shared_lib_base_class
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 9 |
1 files changed, 6 insertions, 3 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..e7805daa9 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; @@ -1557,7 +1560,7 @@ FixedwingEstimator::start() _estimator_task = task_spawn_cmd("ekf_att_pos_estimator", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 40, - 5000, + 7500, (main_t)&FixedwingEstimator::task_main_trampoline, nullptr); |