diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-05 01:27:58 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-05 01:27:58 +0100 |
commit | dbacc00b52e294f65a8d292dbcce0f4fc93b5bf0 (patch) | |
tree | 5bd5eb8b0ac9750d7cd3d77a9b55c7f2122db343 /compat/euler.hpp | |
parent | 4a2d23c14089cb98901e3df535037f7d8095e9a7 (diff) |
compat/euler: add quat -> rmat code
It was meant as part of AHRS using acc+gyro only, but it was too
unreliable. The conversion code is correct and useful though.
Diffstat (limited to 'compat/euler.hpp')
-rw-r--r-- | compat/euler.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/euler.hpp b/compat/euler.hpp index c50cf052..147f4c50 100644 --- a/compat/euler.hpp +++ b/compat/euler.hpp @@ -22,4 +22,7 @@ void OTR_COMPAT_EXPORT tait_bryan_to_matrices(const euler_t& input, rmat& r_pitch, rmat& r_yaw); +rmat OTR_COMPAT_EXPORT quaternion_to_mat(const dmat<1, 4>& q); +//rmat OTR_COMPAT_EXPORT quaternion_to_mat(const dmat<4, 1>& q); + } // end ns euler |