summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-08-03 20:58:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-08-03 20:58:06 +0200
commitf1750a9c7539e3468d0f757f4a2eb7fe19c0ca31 (patch)
tree611a683e28da04a2df447ce48c2b83202daea6be
parentacf9b8935870f7f65d302eb1434241d19dfea3ff (diff)
Provide access to unfiltered, unmapped headpose for cameni
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
index d4aa3c49..bb960696 100644
--- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
+++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
@@ -126,12 +126,12 @@ float headRotZ;
//
// Scale the Raw measurements to the client measurements.
//
- headRotX = getRadsFromDegrees(headpose[Pitch]);
- headRotY = getRadsFromDegrees(headpose[Yaw]);
- headRotZ = getRadsFromDegrees(headpose[Roll]);
- headPosX = headpose[TX] * 10;
- headPosY = headpose[TY] * 10;
- headPosZ = headpose[TZ] * 10;
+ headRotX = getRadsFromDegrees(rawheadpose[Pitch]);
+ headRotY = getRadsFromDegrees(rawheadpose[Yaw]);
+ headRotZ = getRadsFromDegrees(rawheadpose[Roll]);
+ headPosX = rawheadpose[TX] * 10;
+ headPosY = rawheadpose[TY] * 10;
+ headPosZ = rawheadpose[TZ] * 10;
virtRotX = getRadsFromDegrees(headpose[Pitch]);
virtRotY = getRadsFromDegrees(headpose[Yaw]);