diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2015-04-12 13:28:43 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2015-04-12 13:28:43 +0200 |
commit | 7761e461e94d6055b57f9dcaadbfa1943ecfb247 (patch) | |
tree | b4f38f34a67a9b747657cf7f03e28857e5d5262d /src/lib/mathlib/math | |
parent | dc2bb2a85ea4d2a840306cafa6aa4e217ee4dbe9 (diff) | |
download | px4-firmware-7761e461e94d6055b57f9dcaadbfa1943ecfb247.tar.gz px4-firmware-7761e461e94d6055b57f9dcaadbfa1943ecfb247.tar.bz2 px4-firmware-7761e461e94d6055b57f9dcaadbfa1943ecfb247.zip |
mathlib quaternion: atan2 & asin changed to atan2f & asinf
Diffstat (limited to 'src/lib/mathlib/math')
-rw-r--r-- | src/lib/mathlib/math/Quaternion.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/mathlib/math/Quaternion.hpp b/src/lib/mathlib/math/Quaternion.hpp index 0603f0049..b7cb068dd 100644 --- a/src/lib/mathlib/math/Quaternion.hpp +++ b/src/lib/mathlib/math/Quaternion.hpp @@ -216,9 +216,9 @@ public: */ Vector<3> to_euler() const { return Vector<3>( - atan2(2.0f * (data[0] * data[1] + data[2] * data[3]), 1.0f - 2.0f * (data[1] * data[1] + data[2] * data[2])), - asin(2.0f * (data[0] * data[2] - data[3] * data[1])), - atan2(2.0f * (data[0] * data[3] + data[1] * data[2]), 1.0f - 2.0f * (data[2] * data[2] + data[3] * data[3])) + atan2f(2.0f * (data[0] * data[1] + data[2] * data[3]), 1.0f - 2.0f * (data[1] * data[1] + data[2] * data[2])), + asinf(2.0f * (data[0] * data[2] - data[3] * data[1])), + atan2f(2.0f * (data[0] * data[3] + data[1] * data[2]), 1.0f - 2.0f * (data[2] * data[2] + data[3] * data[3])) ); } |