Index: Common.h =================================================================== diff -u -re8828d66e4a76e0590c3f06b7f6235f33df64e80 -rb6692fc38b400e9f2c12520fcadc2438e5a31e36 --- Common.h (.../Common.h) (revision e8828d66e4a76e0590c3f06b7f6235f33df64e80) +++ Common.h (.../Common.h) (revision b6692fc38b400e9f2c12520fcadc2438e5a31e36) @@ -105,6 +105,7 @@ #define SEC_PER_MIN 60 ///< # of seconds in a minute. #define FRACTION_TO_PERCENT_FACTOR 100.0 ///< Percentage factor (100). #define MIN_PER_HOUR 60 ///< # of minutes in an hour. +#define PI 3.1415927 ///< PI. // **** Common Macros **** @@ -126,6 +127,7 @@ #define MAKE_LONG_OF_WORDS(h, l) ((((U32)(h) << SHIFT_16_BITS_FOR_WORD_SHIFT) & MASK_OFF_LSW) | ((U32)(l) & MASK_OFF_MSW)) ///< Macro merges two 2-byte words into a 4-byte word. #define GET_TOGGLE(v, l, h) ((v) == (l) ? (h) : (l)) ///< Macro toggles a value. #define BIT_BY_POS(p) (1U << (p)) ///< Macro returns a bit mask for a bit of given position. +#define RAD2DEG(r) ((r) * 180.0 / PI) ///< Macro converts radians to degrees /**@}*/