diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-29 06:10:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-29 06:11:27 +0100 |
commit | a068e64bc835d52298b2e12fd8689f6f4fcd7723 (patch) | |
tree | 3eca24fe5862ad252ef8f79865ff5b0117336ae2 | |
parent | 86f0ba1f6d7f1240f95ca2e517b648ab0681a841 (diff) |
apply right invert, so users don't have to
-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 7008d452..2dd10d1d 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -48,8 +48,8 @@ FTNoIR_Protocol::~FTNoIR_Protocol() } void FTNoIR_Protocol::pose(const double* headpose) { - float yaw = getRadsFromDegrees(headpose[Yaw]); - float pitch = getRadsFromDegrees(headpose[Pitch]); + float yaw = -getRadsFromDegrees(headpose[Yaw]); + float pitch = -getRadsFromDegrees(headpose[Pitch]); float roll = getRadsFromDegrees(headpose[Roll]); float tx = headpose[TX] * 10.f; float ty = headpose[TY] * 10.f; |