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

Copter automatically turns north when switching to GUIDED_NOGPS #26357

Closed
ShevaDavid opened this issue Feb 29, 2024 · 3 comments
Closed

Copter automatically turns north when switching to GUIDED_NOGPS #26357

ShevaDavid opened this issue Feb 29, 2024 · 3 comments
Assignees

Comments

@ShevaDavid
Copy link

Bug report

Issue details
This issue follows up the discussion with Leonard
https://discuss.ardupilot.org/t/set-attitude-target-with-guided-no-gps-lack-of-documentation/111845/24
When I switch to GUIDED_NOGPS, the copter automatically turns north, because this is how attitude quaternion is initialized (1, 0, 0, 0) in angle_control_start method. So I just replaced it with zero quaternion (0, 0, 0, 0) and now there is no automatic north rotaion.

Version
4.5

Platform
[ ] Copter

@rmackay9
Copy link
Contributor

Hi, thanks for the report. I've added this to the Copter-4.5 issues list although I guess the issue also exists in 4.4. Txs again

@lthall
Copy link
Contributor

lthall commented Mar 6, 2024

PR #26407

@lthall
Copy link
Contributor

lthall commented Mar 31, 2024

This has now been fixed.

@lthall lthall closed this as completed Mar 31, 2024
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

3 participants