summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-29 05:54:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-10-29 05:54:32 +0100
commit4929fc3045e0a2bf1593eeae633d70fd662bcf0f (patch)
tree99ef7d6cdcc8d6930758a3bb2aae8341dd3543c9
parent502c95b5e521b1f3d10d06064d777345dcf6e25a (diff)
rift needs yaw+pitch swappage
Evidence: people's configs found on google
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
index 724c7d3d..0328428f 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
@@ -58,8 +58,8 @@ void Rift_Tracker::data(double *data)
old_yaw=yaw;
}
constexpr double d2r = 57.295781;
- data[Yaw] = yaw * d2r;
- data[Pitch] = pitch * -d2r;
+ data[Yaw] = yaw * -d2r;
+ data[Pitch] = pitch * d2r;
data[Roll] = roll * d2r;
data[TX] = pose.Position.x * -1e2;
data[TY] = pose.Position.y * 1e2;