diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-19 10:25:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-19 10:25:56 +0200 |
commit | 2ec2fe9222c95565ce1cdc47c4b49dd2f5e5c2e3 (patch) | |
tree | 0a37ca2325d06ac8c87a3472aa420e47c8a844cb | |
parent | 00097d4c2d272bda38e5ebdaa6dffc41a59eba33 (diff) |
fix axes swappageopentrack-2.2-stable-20141112
Issue: #56
-rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index bb771c9d..7b62dfbb 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -49,8 +49,8 @@ FTNoIR_Protocol::~FTNoIR_Protocol() } void FTNoIR_Protocol::sendHeadposeToGame(const double* headpose) { - float yaw = getRadsFromDegrees(headpose[Pitch]) * (s.useDummyExe ? 2.0 : 1.0); - float pitch = getRadsFromDegrees(headpose[Yaw]); + float yaw = getRadsFromDegrees(headpose[Yaw]) * (s.useDummyExe ? 2.0 : 1.0); + float pitch = getRadsFromDegrees(headpose[Pitch]); float roll = getRadsFromDegrees(headpose[Roll]); float tx = headpose[TX] * 10.f; float ty = headpose[TY] * 10.f; @@ -68,8 +68,8 @@ void FTNoIR_Protocol::sendHeadposeToGame(const double* headpose) { pMemData->data.X = tx; pMemData->data.Y = ty; pMemData->data.Z = tz; - pMemData->data.Pitch = pitch; pMemData->data.Yaw = yaw; + pMemData->data.Pitch = pitch; pMemData->data.Roll = roll; pMemData->data.X1 = ++pMemData->data.DataID; |