AP_Math: add M_PI_2 definition

Required when building under arduino
This commit is contained in:
Randy Mackay 2013-07-14 15:57:26 +09:00
parent 8545071a21
commit bd6a60f28b

View File

@ -20,7 +20,10 @@
#include "polygon.h"
#ifndef PI
#define PI 3.141592653589793f
# define PI 3.141592653589793f
#endif
#ifndef M_PI_2
# define M_PI_2 1.570796326794897f
#endif
#define DEG_TO_RAD 0.017453292519943295769236907684886f
#define RAD_TO_DEG 57.295779513082320876798154814105f