-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[Bug] Altitude estimation issues #24653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
So, the baro is set as the height reference (EKF2_HGT_REF) but provides complete garbage data: The height above ground (
Yes, that's what the controller should do when in |
I think it's also a matter of tuning. With the parameters you have, the estimator knows that:
With this information, the absolute altitude slowly tracks the baro and the corrections of the range finder are pushed into the terrain altitude estimate. |
@bresch Tuning? Which parameters would you adjust? Regarding the Z estimate:
|
Here's another quick hover test indoors with the dexi in position mode It sort of works, but the altitude still wanders up and down. |
Dexi flow, rangefinder, no GPS. Log from boot with EKF replay. https://review.px4.io/plot_app?log=61bba67d-f015-4151-bb20-9d7d248a98e9 |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
Describe the bug
Airframe is the Dexi (ark_pi6x_default)
Below is a quick hover test in Manual mode inside my house.
https://review.px4.io/plot_app?log=2d4d8f06-edca-4e79-a5b9-5c729d971e15
The plot on the left is from EKF replay with EKF2_HGT_REF set to Range

As you can see when EKF2_HGT_REF is set to range the estimate tracks the distance sensor once it starts to hover, although there is still a large bias in the estimated height (I've applied an offset to show that they align)
The problem
The issue I want to focus on however is the standard case where EKF2_HGT_REF = 1 (GPS). Since we are not moving horizontally and the distance sensor data is continuous, we should meet the requirements for "range aid". This should allow the autopilot to control the Z position around the distance sensor data directly.
The text was updated successfully, but these errors were encountered: