aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-06-12 15:57:13 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-06-12 15:57:13 +0200
commita419a2ebf37ba0fafd0b95732a0992d3d7425689 (patch)
treee213d23d138656b05c39b680dafee9f730d08af1 /src/modules/ekf_att_pos_estimator/estimator_23states.cpp
parent3685ec5c975bf5a7f39f726fe07b99f1c26350f8 (diff)
downloadpx4-firmware-a419a2ebf37ba0fafd0b95732a0992d3d7425689.tar.gz
px4-firmware-a419a2ebf37ba0fafd0b95732a0992d3d7425689.tar.bz2
px4-firmware-a419a2ebf37ba0fafd0b95732a0992d3d7425689.zip
Report excessive covariances
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/estimator_23states.cpp')
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_23states.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator_23states.cpp b/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
index 352d9a0ce..c2282fbb9 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
+++ b/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
@@ -2376,6 +2376,12 @@ int AttPosEKF::CheckAndBound()
ret = 5;
}
+ if (current_ekf_state.covariancesExcessive) {
+ FillErrorReport(&last_ekf_error);
+ current_ekf_state.covariancesExcessive = false;
+ ret = 6;
+ }
+
if (ret) {
ekfDiverged = true;
}