aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-28 14:27:10 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-28 14:27:10 +0200
commit67db8ee4f0908c31f17ed490c48ea21cc7ac3f86 (patch)
treed3bc3ce1abcbdb1c152234d457247d133616b937 /src/modules/ekf_att_pos_estimator
parent5d36381dc5f3bbb1eefc70158680f9622ac437b6 (diff)
downloadpx4-firmware-67db8ee4f0908c31f17ed490c48ea21cc7ac3f86.tar.gz
px4-firmware-67db8ee4f0908c31f17ed490c48ea21cc7ac3f86.tar.bz2
px4-firmware-67db8ee4f0908c31f17ed490c48ea21cc7ac3f86.zip
Add missing states, build fix for master
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_23states.cpp4
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_utilities.h4
2 files changed, 8 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 3d504d395..ffdd29a5b 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
+++ b/src/modules/ekf_att_pos_estimator/estimator_23states.cpp
@@ -3028,6 +3028,10 @@ void AttPosEKF::GetFilterState(struct ekf_status_report *err)
current_ekf_state.states[i] = states[i];
}
current_ekf_state.n_states = n_states;
+ current_ekf_state.onGround = onGround;
+ current_ekf_state.staticMode = staticMode;
+ current_ekf_state.useCompass = useCompass;
+ current_ekf_state.useAirspeed = useAirspeed;
memcpy(err, &current_ekf_state, sizeof(*err));
diff --git a/src/modules/ekf_att_pos_estimator/estimator_utilities.h b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
index 6d1f47b68..a6b670c4d 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_utilities.h
+++ b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
@@ -68,6 +68,10 @@ struct ekf_status_report {
bool posTimeout;
bool hgtTimeout;
bool imuTimeout;
+ bool onGround;
+ bool staticMode;
+ bool useCompass;
+ bool useAirspeed;
uint32_t velFailTime;
uint32_t posFailTime;
uint32_t hgtFailTime;