diff options
Diffstat (limited to 'tracker-rift-042')
-rw-r--r-- | tracker-rift-042/ftnoir_tracker_rift_042.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_042.cpp index 853dfcf9..749a927f 100644 --- a/tracker-rift-042/ftnoir_tracker_rift_042.cpp +++ b/tracker-rift-042/ftnoir_tracker_rift_042.cpp @@ -7,10 +7,6 @@ #include <cstring> #include <cmath> -#ifndef M_PI -# define M_PI 3.14159265358979323846 -#endif - using namespace OVR; Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr) @@ -66,7 +62,7 @@ void Rift_Tracker::data(double *data) yaw_ += s.constant_drift; old_yaw = yaw_; } - static constexpr double d2r = 180 / M_PI; + static constexpr double d2r = 180 / OPENTRACK_PI; data[Yaw] = yaw_ * -d2r; data[Pitch] = double(pitch) * d2r; data[Roll] = double(roll) * d2r; |