From 1cf0eafdb105f20a57f81908c3f292d53043888c Mon Sep 17 00:00:00 2001 From: "james.goppert" Date: Tue, 28 Dec 2010 21:30:29 +0000 Subject: [PATCH] Added macros to AP_Common.h git-svn-id: https://arducopter.googlecode.com/svn/trunk@1332 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/AP_Common.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 4577ed23b7..2b7c7436d4 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -65,9 +65,16 @@ # undef PSTR # define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];})) #endif - //@} +/// +/// @name Macros +/// @{ +#define ToRad(x) (x*0.01745329252) // *pi/180 +#define ToDeg(x) (x*57.2957795131) // *180/pi +// @} + + //////////////////////////////////////////////////////////////////////////////// /// @name Types ///