summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-04-04 23:57:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-04-04 23:57:43 +0200
commitd09445062d5eebbe54b7e8da4f7dc1814625d867 (patch)
tree3bc72e145a9745f97ff5b328d6c227d1278b0aec
parent89d6cdfd6e8b37a152d03112667d0b6c65fc4c81 (diff)
hatire: oops, convert degree to radian in all cases
-rw-r--r--ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp b/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
index 6bacd5f9..bbd2f7c8 100644
--- a/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
+++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
@@ -408,17 +408,17 @@ bool FTNoIR_Tracker::GiveHeadPoseData(THeadPoseData *data)
if (bEnableYaw) {
if (bInvertYaw ) data[Yaw] = HAT.Rot[iYawAxe] * -1.0f * d2r;
- else data[Yaw] = HAT.Rot[iYawAxe];
+ else data[Yaw] = HAT.Rot[iYawAxe] * d2r;
} else data[Yaw] =0;
if (bEnablePitch) {
if (bInvertPitch) data[Pitch] = HAT.Rot[iPitchAxe] * -1.0f * d2r;
- else data[Pitch] = HAT.Rot[iPitchAxe];
+ else data[Pitch] = HAT.Rot[iPitchAxe] * d2r;
} else data[Pitch] = 0;
if (bEnableRoll) {
if (bInvertRoll) data[Roll] = HAT.Rot[iRollAxe] * -1.0f * d2r;
- else data[Roll] = HAT.Rot[iRollAxe];
+ else data[Roll] = HAT.Rot[iRollAxe] * d2r;
} else data[Roll] =0;
if (bEnableX) {