Skip to content
Snippets Groups Projects
Commit 482f1242 authored by james.goppert's avatar james.goppert
Browse files

Added macros to AP_Common.h

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1332 f9c3cf11-9bcb-44bc-f272-b75c42450872
parent 49889431
No related branches found
No related tags found
No related merge requests found
...@@ -65,9 +65,16 @@ ...@@ -65,9 +65,16 @@
# undef PSTR # undef PSTR
# define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];})) # define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
#endif #endif
//@} //@}
///
/// @name Macros
/// @{
#define ToRad(x) (x*0.01745329252) // *pi/180
#define ToDeg(x) (x*57.2957795131) // *180/pi
// @}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @name Types /// @name Types
/// ///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment