From 06341cb1dc94223a54db0904bb52eae3c80efe00 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 3 Dec 2011 15:28:36 -0800 Subject: [PATCH] Added Deg to rad, rad to deg * 100 to save a float calc --- ArduCopter/defines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduCopter/defines.h b/ArduCopter/defines.h index 63597b2a9c..117a33836f 100644 --- a/ArduCopter/defines.h +++ b/ArduCopter/defines.h @@ -334,7 +334,9 @@ enum gcs_severity { //#define SonarToCm(x) (x*1.26) // Sonar raw value to centimeters // RADIANS -#define RADX100 0.000174533 +#define RADX100 0.000174532925 +#define DEGX100 5729.57795 + // EEPROM addresses #define EEPROM_MAX_ADDR 4096