summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-14 00:03:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-14 00:03:00 +0100
commit0abdc671d5ffe56284b106fd48da2a1abacee6af (patch)
tree80afb730666d75e6ec32f34a2924389fc23cd837 /facetracknoir
parentde354eaca23e275386b3b2365cb4d4e0531377e1 (diff)
pitch axis needs inverting too for FT protocol
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 1f3257f5..ebc8246d 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -55,7 +55,7 @@ static void get_curve(double pos, double& out, THeadPoseDOF& axis) {
static void t_compensate(double* input, double* output, bool rz)
{
const auto H = input[Yaw] * M_PI / -180;
- const auto P = input[Pitch] * M_PI / 180;
+ const auto P = input[Pitch] * M_PI / -180;
const auto B = input[Roll] * M_PI / 180;
const auto cosH = cos(H);