-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
ekf2: allow yaw estimator to run when disarmed (if not at rest) #19398
Conversation
450b282
to
4089473
Compare
hello, this seems to be waiting on something. it's not clear what, though. What's the status of this proposed change? I'm ready to test when it's ready. |
4089473
to
733f0b4
Compare
@comperem it needs testing. In particular we want to be sure it doesn't fail (yaw estimator converging to something random) if you're not actually moving, but the |
Oki doki. I'll give it a try. The yaw is pretty terrible and drifts visibly sitting on the table as it is. I'll provide an update after testing. |
This leaves the yaw estimator vulnerable to GPS errors before flight for air vehicle use and is not safe. |
@priseborough I was wondering if we could capture the underlying requirement (eg sufficient lateral acceleration?) rather than relying on the overly broad arm/disarm. People like @comperem are using the system outside of a typical flight controller scenario. |
ac65a48
to
4bf9b4d
Compare
The yaw estimator will now only run if the vehicle is not at rest, GPS velocity is less than EKF2_REQ_SACC, and motion is not excessive (acceleration norm check). |
4bf9b4d
to
5038a21
Compare
- added new excessive motion check for running yaw estimator - move all handling into gps_control
4a63971
to
013d619
Compare
This is to allow yaw estimator to run and potential perform yaw align before the vehicle is armed. Potentially useful for cases like #19393.
PX4-Autopilot/src/modules/ekf2/EKF/gps_control.cpp
Lines 139 to 147 in bc26b73