We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c24886 commit 0f1a839Copy full SHA for 0f1a839
src/MadgwickAHRS.cpp
@@ -509,10 +509,10 @@ float Madgwick::getYawRadians() {
509
510
/*Convert degree to radian*/
511
inline float Madgwick::deg2rad(float value) {
512
- return value * M_PI / 180.0f;
+ return value * PI / 180.0f;
513
}
514
515
/*Convert radian to degree*/
516
inline float Madgwick::rad2deg(float value) {
517
- return value * 180.0f / M_PI;
+ return value * 180.0f / PI;
518
src/MadgwickAHRS.h
@@ -17,9 +17,7 @@
17
#ifndef MadgwickAHRS_h
18
#define MadgwickAHRS_h
19
20
-#ifndef _USE_MATH_DEFINES
21
-#define _USE_MATH_DEFINES
22
-#endif
+#include <Arduino.h>
23
#include <math.h>
24
25
//-------------------------------------------------------------------------------------------
0 commit comments