EKF3. Use barometer and GPS for Altitude (POSZ)

Just in case if someone interested.

Parameter EK3_OGN_HGT_MASK doesn’t work as expected until this bug fix:

I tried SITL with Plane-4.4 and Plane-4.5. EK3_OGN_HGT_MASK parameter doesn’t help with baro drift at all.
From master branch (25 Jun 2024). This pull request is merged: Fix infinite climb bug when using EK3_OGN_HGT_MASK by peterbarker · Pull Request #26917 · ArduPilot/ardupilot · GitHub

EK3_OGN_HGT_MASK, 5 does help with SLOW baro drifts:

self.set_parameters({"SIM_BARO_GLITCH": deltaTime * 0.1}, verbose=False)

Ardupilot corrects Altitude by GPS data.

For sudden simulated baro glitches EK3_OGN_HGT_MASK, 5 doesn’t help. Altitude is not corrected at all. Even from master branch with this fix: Fix infinite climb bug when using EK3_OGN_HGT_MASK by peterbarker · Pull Request #26917 · ArduPilot/ardupilot · GitHub

1 Like