Browse Source

Add missing states, build fix for master

sbg
Lorenz Meier 11 years ago
parent
commit
67db8ee4f0
  1. 4
      src/modules/ekf_att_pos_estimator/estimator_23states.cpp
  2. 4
      src/modules/ekf_att_pos_estimator/estimator_utilities.h

4
src/modules/ekf_att_pos_estimator/estimator_23states.cpp

@ -3028,6 +3028,10 @@ void AttPosEKF::GetFilterState(struct ekf_status_report *err) @@ -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));

4
src/modules/ekf_att_pos_estimator/estimator_utilities.h

@ -68,6 +68,10 @@ struct ekf_status_report { @@ -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;

Loading…
Cancel
Save