summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-042
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-29 09:21:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-10-29 09:41:23 +0100
commit33aa2b6bbbf6edbe2d0173a03a9869e7ed7a2660 (patch)
tree7deb1be34f9d7ecfca3bd22da6bf722ee19b5f4f /tracker-rift-042
parent29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (diff)
static constexpr -> constexpr
Diffstat (limited to 'tracker-rift-042')
-rw-r--r--tracker-rift-042/ftnoir_tracker_rift_042.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_042.cpp
index 1047957a..0e52812d 100644
--- a/tracker-rift-042/ftnoir_tracker_rift_042.cpp
+++ b/tracker-rift-042/ftnoir_tracker_rift_042.cpp
@@ -67,8 +67,8 @@ void rift_tracker_042::data(double *data)
ovrTrackingState ss = ovrHmd_GetTrackingState(hmd, 0);
if (ss.StatusFlags & ovrStatus_OrientationTracked)
{
- static constexpr float c_mult = 16;
- static constexpr float c_div = 1/c_mult;
+ constexpr float c_mult = 16;
+ constexpr float c_div = 1/c_mult;
Vector3f axis;
float angle;
@@ -90,7 +90,7 @@ void rift_tracker_042::data(double *data)
yaw_ += s.constant_drift;
old_yaw = yaw_;
}
- static constexpr double d2r = 180 / M_PI;
+ constexpr double d2r = 180 / M_PI;
data[Yaw] = yaw_ * -d2r;
data[Pitch] = double(pitch) * d2r;
data[Roll] = double(roll) * d2r;