diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-28 08:02:08 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-28 16:32:01 +0100 |
commit | 6ba1912309fef5b7aa3fc2cda73a124b6b01a01f (patch) | |
tree | ec0b56802be5ce493387810758cbafac4109adf4 /src | |
parent | 719edf93e4c3994d3d61bff4435d5ac0760d912b (diff) | |
download | px4-firmware-6ba1912309fef5b7aa3fc2cda73a124b6b01a01f.tar.gz px4-firmware-6ba1912309fef5b7aa3fc2cda73a124b6b01a01f.tar.bz2 px4-firmware-6ba1912309fef5b7aa3fc2cda73a124b6b01a01f.zip |
add angle conversion defines for ros
Diffstat (limited to 'src')
-rw-r--r-- | src/platforms/px4_defines.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platforms/px4_defines.h b/src/platforms/px4_defines.h index c8e2cf290..fa4e1398e 100644 --- a/src/platforms/px4_defines.h +++ b/src/platforms/px4_defines.h @@ -135,6 +135,8 @@ static inline px4_param_t PX4_ROS_PARAM_SET(const char *name, float value) #define M_IVLN10_F 0.43429448190325182765f /* 1 / log(10) */ #define M_LOG2_E_F _M_LN2_F #define M_INVLN2_F 1.4426950408889633870E0f /* 1 / log(2) */ +#define M_DEG_TO_RAD 0.01745329251994 +#define M_RAD_TO_DEG 57.2957795130823 #else /* |