We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8b87c0 commit 7b4f6a8Copy full SHA for 7b4f6a8
drone_control/common/include/frame_types.h
@@ -1,11 +1,14 @@
1
#ifndef _FRAME_TYPES_HPP_
2
#define _FRAME_TYPES_HPP_
3
4
-#ifndef M_PI
5
-#define M_PI 3.14159265358979323846
+#ifdef WIN32
+#define _USE_MATH_DEFINES
6
#endif
7
+#include <cmath>
8
+//#ifndef M_PI
9
+//#define M_PI 3.14159265358979323846
10
+//#endif
11
-// M_PI を使えるようになります
12
#define DEGREE2RADIAN(v) ( (v) * M_PI / (180.0) )
13
#define RADIAN2DEGREE(v) ( (180.0 * (v)) / M_PI )
14
#define RPM2EULER_RATE(v) ( ((v) * 2 * M_PI) / 60.0 )
0 commit comments