Added macros to AP_Common.h

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1332 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
james.goppert 2010-12-28 21:30:29 +00:00
parent 498894317a
commit 482f124212
1 changed files with 8 additions and 1 deletions

View File

@ -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
///