diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-13 07:28:39 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-13 07:28:39 +0100 | 
| commit | 8f158e544705a0fa17216c2b8f1f8eeec37af991 (patch) | |
| tree | e2ee72b3f88ce43f0c7e30a764387caa4bebcd9f | |
| parent | 2ec2fe9222c95565ce1cdc47c4b49dd2f5e5c2e3 (diff) | |
copy-paste yaw/pitch swappage erroropentrack-2.2-stable-20141113
Reported-by: @asarnow
Issue: #94
| -rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index 7b62dfbb..c255db0f 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[Yaw]) * (s.useDummyExe ? 2.0 : 1.0); -    float pitch = getRadsFromDegrees(headpose[Pitch]); +    float yaw = getRadsFromDegrees(headpose[Yaw]); +    float pitch = getRadsFromDegrees(headpose[Pitch]) * (s.useDummyExe ? 2.0 : 1.0);      float roll = getRadsFromDegrees(headpose[Roll]);      float tx = headpose[TX] * 10.f;      float ty = headpose[TY] * 10.f;  | 
