diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 21:35:46 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 21:35:46 +0200 |
commit | 5a22ef1c28abfeb0076532a847a9178f9dc1361e (patch) | |
tree | 323c0a6f48d53b6703a851546d6b7320517dd6ca /src/lib/conversion/rotation.h | |
parent | 0d1ac4235411e8f05f96bcbe51558d92f0d86cf6 (diff) | |
parent | 5f8baed876a805c2cfae7c0ed0250ae20b501336 (diff) | |
download | px4-firmware-5a22ef1c28abfeb0076532a847a9178f9dc1361e.tar.gz px4-firmware-5a22ef1c28abfeb0076532a847a9178f9dc1361e.tar.bz2 px4-firmware-5a22ef1c28abfeb0076532a847a9178f9dc1361e.zip |
Merge branch 'master' of github.com:PX4/Firmware into airspeed_test_fix
Diffstat (limited to 'src/lib/conversion/rotation.h')
-rw-r--r-- | src/lib/conversion/rotation.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/conversion/rotation.h b/src/lib/conversion/rotation.h index 0c56494c5..5187b448f 100644 --- a/src/lib/conversion/rotation.h +++ b/src/lib/conversion/rotation.h @@ -118,4 +118,12 @@ const rot_lookup_t rot_lookup[] = { __EXPORT void get_rot_matrix(enum Rotation rot, math::Matrix<3,3> *rot_matrix); + +/** + * rotate a 3 element float vector in-place + */ +__EXPORT void +rotate_3f(enum Rotation rot, float &x, float &y, float &z); + + #endif /* ROTATION_H_ */ |