Skip to content

AHRS/EKF attitude at startup incorrect when AHRS_ORIENTATION not 0 #30064

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

Open
rmackay9 opened this issue May 13, 2025 · 0 comments
Open

AHRS/EKF attitude at startup incorrect when AHRS_ORIENTATION not 0 #30064

rmackay9 opened this issue May 13, 2025 · 0 comments

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented May 13, 2025

This is re-raising an issue reported during 4.6 beta testing but it has existed for some time.

If the vehicle is placed upside down and AHRS_ORIENTATION = 8 (Roll 180) then the vehicle's attitude shown on the GCS HUD is incorrect for the first few seconds (at least). It then rolls or pitches towards the correct attitude and then suddenly corrects itself. It would be nice if the attitude was close to correct immediately upon startup.

This is an example of the behaviour captured by setting LOG_DISARMED = 1 and restarted the autopilot in an inverted position (and AHRS_ORIENTATION = 8)
Image

The result is even more stark on Plane perhaps because it tends to use DCM soon after startup
Image

4.6 PR that attempted to fix the issue: #29667

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

No branches or pull requests

1 participant