diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 12:01:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 12:01:43 +0200 |
commit | 107570e6288d266825724010a6f0149eaaac40db (patch) | |
tree | ab357889f6cd009e6e6a89e89657c377d4bb05ab /tracker-rift-042/ftnoir_tracker_rift_042.cpp | |
parent | 1c22f4a19a0cfa6b593b72754acb9ea97fbded13 (diff) |
many: remove compat/pi-constant.hpp
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and
friends.
Since this preprocessor definition is now always passed as part
of the build system for MSVC. We can use M_PI as if on a
mission.
Diffstat (limited to 'tracker-rift-042/ftnoir_tracker_rift_042.cpp')
-rw-r--r-- | tracker-rift-042/ftnoir_tracker_rift_042.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_042.cpp index 6107dc8d..c868eee8 100644 --- a/tracker-rift-042/ftnoir_tracker_rift_042.cpp +++ b/tracker-rift-042/ftnoir_tracker_rift_042.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_042.h" #include "api/plugin-api.hpp" -#include "compat/pi-constant.hpp" #include <QString> @@ -68,7 +67,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; |