summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-140/rift-140.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rift-140/rift-140.cpp')
-rw-r--r--tracker-rift-140/rift-140.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-rift-140/rift-140.cpp b/tracker-rift-140/rift-140.cpp
index 45bfcc97..ebcc7654 100644
--- a/tracker-rift-140/rift-140.cpp
+++ b/tracker-rift-140/rift-140.cpp
@@ -70,8 +70,8 @@ void rift_tracker_140::data(double *data)
ovrTrackingState ss = ovr_GetTrackingState(hmd, 0, false);
if (ss.StatusFlags & ovrStatus_OrientationTracked)
{
- static constexpr float c_mult = 8;
- static constexpr float c_div = 1/c_mult;
+ constexpr float c_mult = 8;
+ constexpr float c_div = 1/c_mult;
Vector3f axis;
float angle;
@@ -97,7 +97,7 @@ void rift_tracker_140::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;