Skip to content
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

Altitude performance on 1.8 sometimes worse than on 1.7 #10360

Closed
AuterionWrikeBot opened this issue Aug 29, 2018 · 12 comments
Closed

Altitude performance on 1.8 sometimes worse than on 1.7 #10360

AuterionWrikeBot opened this issue Aug 29, 2018 · 12 comments

Comments

@AuterionWrikeBot
Copy link

Idea of Paul:
back to back testing on same hardware. Run 1.8 estimator on 1.7 and 1.8

@AuterionWrikeBot
Copy link
Author

➤ Thomas Gubler commented:

@roman Bapst could you please provide the logs to paul?

@AuterionWrikeBot
Copy link
Author

➤ Paul Riseborough commented:

Relates to #9740

@jfcisneros
Copy link

@jfcisneros
Copy link

jfcisneros commented Aug 30, 2018

Position Control (Position Setpoint in Offboard Mode)
Here is more noticeable the difference in performance between the 2 versions.
v1.7.3
https://logs.px4.io/plot_app?log=6857323d-fe61-406d-b00e-5905a90ce591
v1.8.0
https://logs.px4.io/plot_app?log=601fe7fa-b820-46bd-8332-cc2d4ac800f4

*The versions referenced are the stable versions.

@priseborough
Copy link
Contributor

Unfortunately the change to the cmake system between the ecl versions used for versions 1.7.3 and 1.8.3 meant that I was unable to build 1.7.3 using the ecl library from 1.8.0.

@AuterionWrikeBot
Copy link
Author

➤ Wrike Bot commented:

@paul Riseborough All subtasks have been completed or deferred, you might want to complete this task as well.

@priseborough
Copy link
Contributor

priseborough commented Aug 30, 2018

I was able to compare the v1.7.3 and v1.8.0 logs and check the EKF baro lat innovations and the consistency of the output vertical velocity and vertical position derivative. Both metrics indicated that the ekf in the 1.8.3 log was performing better than in the 1.7.3 log in terms of bias errors, but had more noise on the baro innovations.

v1.8.0 baro innovations
180_innov

v1.7.3 baro innovations
173_innov

v1.8.0 vertical velocity and vertical position derivative
180_vz

v1.7.3 vertical velocity and vertical position derivative
173_vz

@priseborough
Copy link
Contributor

@jfcisneros Plotting the baro alt and distance sensor data overlayed shows a significant inconsistency. Can you please confirm your sensor calibration. If the baro has this much scale factor error, then it is pointless doing 1.7.3 vs 1.8.0 comparisons.

v1.7.3
173_height

v1.8.0
180_height

@tops4u
Copy link
Contributor

tops4u commented Aug 31, 2018

Could the Barometer be exposed to Downwash/Turbulence? I'm interested in this Issue since I have also seen rather large Oscillations of my F-450 Quad with a Pixracer, but now when I think of it, it is probably exposed to Downwash Effects (it does not have LIDAR/US Sensors)

@priseborough
Copy link
Contributor

That's possible. A hand held height change test without motors running will confirm if it is a sensor or aerodynamic issue.

@priseborough
Copy link
Contributor

I am closing this issue as there is a clear problem with baro data in flight. Once this has been resolved, the issue can be reopened if the problem with altitude hold with 1.8.0 continues.

@jfcisneros
Copy link

Sorry for the delay. I just did the recommended testing without the motors running.
Both of the logs were recorded with v1.8.0
Hand Held Test
https://review.px4.io/plot_app?log=4c726610-db8d-472b-924f-2359e13b0f54
altitude

Altitude Hold
https://review.px4.io/plot_app?log=074083e5-d457-47fb-8f96-f16c36ace664
altitude2

There seems to be a great effect in the baro scale factor while flying.
For our vehicle we have selected Range sensor as EKF2_HGT_MODE, and Range aid enabled for EKF2_RNG_AID. Wouldnt this set the EKF2 to use Range Finder height rather than height from the barometer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants