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

Protect quat to euler conversion for NaN #2580

Conversation

EwoudSmeur
Copy link
Member

If the state quaternion is slightly off around +-90 degrees pitch, the result
might be a NaN if the asin is computed. I added bounds to make sure this
can never happen. The argument should not be outside [-1,1] anyway.

If the quaternion is slightly off around +-90 degrees pitch, the result
might be a NaN if the asin is computed. Added bounds to make sure this
can never happen. The argument should not be outside [-1,1] anyway.
@gautierhattenberger gautierhattenberger merged commit e836438 into paparazzi:master Sep 14, 2020
@EwoudSmeur EwoudSmeur deleted the euler_angle_conversion_protection branch September 15, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants