diff options
Diffstat (limited to 'tracker-rift-080')
-rw-r--r-- | tracker-rift-080/ftnoir_tracker_rift_080.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-rift-080/ftnoir_tracker_rift_080.cpp b/tracker-rift-080/ftnoir_tracker_rift_080.cpp index f8091613..8522a540 100644 --- a/tracker-rift-080/ftnoir_tracker_rift_080.cpp +++ b/tracker-rift-080/ftnoir_tracker_rift_080.cpp @@ -1,7 +1,6 @@ /* Copyright: "i couldn't care less what anyone does with the 5 lines of code i wrote" - mm0zct */ #include "ftnoir_tracker_rift_080.h" #include "api/plugin-api.hpp" -#include "compat/pi-constant.hpp" #include <QString> @@ -10,6 +9,7 @@ #include <OVR_CAPI_0_8_0.h> #include <cstdio> +#include <cmath> using namespace OVR; @@ -79,7 +79,7 @@ void Rift_Tracker::data(double *data) yaw_ += s.constant_drift; old_yaw = yaw_; } - static constexpr double d2r = 180 / OPENTRACK_PI; + static constexpr double d2r = 180 / M_PI; data[Yaw] = yaw_ * -d2r; data[Pitch] = double(pitch) * d2r; data[Roll] = double(roll) * d2r; |