Skip to content
Snippets Groups Projects
Commit bd6a60f2 authored by Randy Mackay's avatar Randy Mackay
Browse files

AP_Math: add M_PI_2 definition

Required when building under arduino
parent 8545071a
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
#include "polygon.h" #include "polygon.h"
#ifndef PI #ifndef PI
#define PI 3.141592653589793f # define PI 3.141592653589793f
#endif
#ifndef M_PI_2
# define M_PI_2 1.570796326794897f
#endif #endif
#define DEG_TO_RAD 0.017453292519943295769236907684886f #define DEG_TO_RAD 0.017453292519943295769236907684886f
#define RAD_TO_DEG 57.295779513082320876798154814105f #define RAD_TO_DEG 57.295779513082320876798154814105f
......
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