[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/paparazzi] e83643: Protect quat to euler
From: |
Ewoud Smeur |
Subject: |
[paparazzi-commits] [paparazzi/paparazzi] e83643: Protect quat to euler conversion for NaN (#2580) |
Date: |
Mon, 14 Sep 2020 09:56:38 -0700 |
Branch: refs/heads/master
Home: https://github.com/paparazzi/paparazzi
Commit: e83643812c1bc4d31283b99e9b405c3defee66a1
https://github.com/paparazzi/paparazzi/commit/e83643812c1bc4d31283b99e9b405c3defee66a1
Author: Ewoud Smeur <ewoud_smeur@msn.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M sw/airborne/math/pprz_algebra_float.c
M sw/airborne/math/pprz_algebra_int.c
Log Message:
-----------
Protect quat to euler conversion for NaN (#2580)
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/paparazzi] e83643: Protect quat to euler conversion for NaN (#2580),
Ewoud Smeur <=