You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
714 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __MAVLINK_HELPERS_HEADER__
  2. #define __MAVLINK_HELPERS_HEADER__
  3. #ifndef M_PI_2
  4. #define M_PI_2 1.5707963267948966192313216916398f
  5. #endif
  6. void mavlink_quaternion_to_dcm(const float quaternion[4], float &dcm[3][3]);
  7. void mavlink_dcm_to_euler(const float dcm[3][3], float* roll, float* pitch, float* yaw);
  8. void mavlink_quaternion_to_euler(const float quaternion[4], float* roll, float* pitch, float* yaw);
  9. void mavlink_euler_to_quaternion(float roll, float pitch, float yaw, float quaternion[4]);
  10. void mavlink_dcm_to_quaternion(const float dcm[3][3], float &quaternion[4]);
  11. void mavlink_euler_to_dcm(float roll, float pitch, float yaw, float &dcm[3][3]);
  12. #endif // __MAVLINK_HELPERS_HEADER__