forked from Archive/PX4-Autopilot
AttPosEKF: Fix initialization of AMSL estimation without GPS
This commit is contained in:
parent
66cb129d18
commit
3d1e373e36
|
@ -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…
Reference in New Issue