mirror of https://github.com/ArduPilot/ardupilot
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:
parent
498894317a
commit
482f124212
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue