mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 23:50:34 +08:00
AttPosEKF: Fix initialization of AMSL estimation without GPS
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user