Browse Source

AttPosEKF: Fix initialization of AMSL estimation without GPS

sbg
Johan Jansen 10 years ago
parent
commit
3d1e373e36
  1. 1
      src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

1
src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp

@ -1331,6 +1331,7 @@ void AttitudePositionEstimatorEKF::task_main() @@ -1331,6 +1331,7 @@ void AttitudePositionEstimatorEKF::task_main()
_local_pos.ref_alt = _baro_ref;
_baro_ref_offset = 0.0f;
_baro_gps_offset = 0.0f;
_baro_alt_filt = _baro.altitude;
_ekf->InitialiseFilter(initVelNED, 0.0, 0.0, 0.0f, 0.0f);

Loading…
Cancel
Save