Skip to content

fix(ekf2): apply baro ground effect deadzone symmetrically#26655

Closed
dakejahl wants to merge 2 commits into
mainfrom
fix/ekf2-baro-ground-effect-symmetric-deadzone
Closed

fix(ekf2): apply baro ground effect deadzone symmetrically#26655
dakejahl wants to merge 2 commits into
mainfrom
fix/ekf2-baro-ground-effect-symmetric-deadzone

Conversation

@dakejahl
Copy link
Copy Markdown
Contributor

@dakejahl dakejahl commented Mar 5, 2026

The baro ground effect deadzone was only applied to negative vertical position innovations, assuming ground effect always causes a positive static pressure transient (pressure rise). In practice, the direction of the pressure transient depends on the baro placement on the airframe, so ground effect can produce large baro innovations in either direction.

This applies the deadzone symmetrically to both positive and negative baro innovations, and updates the related comments, param descriptions, and control status flag description to remove the one-directional assumption.

The baro ground effect deadzone was only applied to negative vertical
position innovations, assuming ground effect always causes a positive
static pressure transient. In practice, the direction of the pressure
transient depends on the baro location on the airframe, so ground
effect can produce large innovations in either direction.

Apply the deadzone symmetrically to both positive and negative baro
innovations.
@dakejahl dakejahl requested review from bresch, dagar and haumarco and removed request for dagar March 5, 2026 00:22
@dagar
Copy link
Copy Markdown
Member

dagar commented Mar 11, 2026

Do you have a log showing this?

@dakejahl
Copy link
Copy Markdown
Contributor Author

dakejahl commented Mar 18, 2026

Do you have a log showing this?

Yes, this is my 3" FPV flying inside
https://review.px4.io/plot_app?log=b5af24a5-058b-4bae-8e6e-d3cfc9953578
image

@dakejahl dakejahl marked this pull request as ready for review March 18, 2026 02:18
@dakejahl
Copy link
Copy Markdown
Contributor Author

Sampled 20 recent multirotor logs from the public flight review database and checked estimator_innovations.baro_vpos during the takeoff/ground-effect window (−2 s to +15 s around vehicle_land_detected.landed transition). Classified dominant innovation direction by comparing squared energy of positive vs negative samples.

Result: 15/20 (75%) showed positive-dominant baro innovations, 2 negative-dominant, 2 mixed, 1 negligible. The current one-sided deadzone does not mitigate the majority case.

Five representative logs with clear positive innovations during takeoff:

Log Airframe Peak positive Peak negative
64f2b6c4 Quadrotor +3.95 m −0.41 m
48cfdc00 Quadrotor +3.88 m −0.48 m
2a7f45bc Quadrotor +2.66 m −0.00 m
accc9dbf Hexarotor +1.04 m −0.55 m
b9db4c60 S500 +0.96 m −0.21 m

@dakejahl
Copy link
Copy Markdown
Contributor Author

I have a plan to tackle this better -- with and without a rangefinder. We need baro thrust compensation first though #26924

@dakejahl dakejahl closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants