From 9edc4683ecd75d4705aca13217779e3c1a721913 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 27 Jun 2013 16:06:34 +0200 Subject: Rename R[XYZ] to Yaw, Pitch, Roll to avoid confusion Requested-by: mm0zct --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ftnoir_tracker_rift') diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index 9e985444..0e023bde 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -73,9 +73,9 @@ bool Rift_Tracker::GiveHeadPoseData(double *data) float pitch = 0.0f; float roll = 0.0f; hmdOrient.GetEulerAngles(&yaw, &pitch , &roll); - newHeadPose[RY] =pitch; - newHeadPose[RZ] = roll; - newHeadPose[RX] = yaw; + newHeadPose[Pitch] =pitch; + newHeadPose[Roll] = roll; + newHeadPose[Yaw] = yaw; #if 0 if (bEnableX) { data[TX] = newHeadPose[TX]; @@ -88,13 +88,13 @@ bool Rift_Tracker::GiveHeadPoseData(double *data) } #endif if (bEnableYaw) { - data[RX] = newHeadPose[RX] * 57.295781f; + data[Yaw] = newHeadPose[Yaw] * 57.295781f; } if (bEnablePitch) { - data[RY] = newHeadPose[RY] * 57.295781f; + data[Pitch] = newHeadPose[Pitch] * 57.295781f; } if (bEnableRoll) { - data[RZ] = newHeadPose[RZ] * 57.295781f; + data[Roll] = newHeadPose[Roll] * 57.295781f; } } return pHMD.GetPtr() != NULL; -- cgit v1.2.3