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.
15 lines
714 B
15 lines
714 B
#ifndef __MAVLINK_HELPERS_HEADER__
|
|
#define __MAVLINK_HELPERS_HEADER__
|
|
|
|
#ifndef M_PI_2
|
|
#define M_PI_2 1.5707963267948966192313216916398f
|
|
#endif
|
|
|
|
void mavlink_quaternion_to_dcm(const float quaternion[4], float &dcm[3][3]);
|
|
void mavlink_dcm_to_euler(const float dcm[3][3], float* roll, float* pitch, float* yaw);
|
|
void mavlink_quaternion_to_euler(const float quaternion[4], float* roll, float* pitch, float* yaw);
|
|
void mavlink_euler_to_quaternion(float roll, float pitch, float yaw, float quaternion[4]);
|
|
void mavlink_dcm_to_quaternion(const float dcm[3][3], float &quaternion[4]);
|
|
void mavlink_euler_to_dcm(float roll, float pitch, float yaw, float &dcm[3][3]);
|
|
|
|
#endif // __MAVLINK_HELPERS_HEADER__
|