summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:28:02 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:28:02 +0100
commit9ce886603f443b145890ad688879bad4d14c52f2 (patch)
tree5655928fb329f5cdef0a91aa188d467fc878a56c
parent17615205b06eaf8bffb6bacd4f79696d856117a4 (diff)
hopefully fix compensation for good
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r--facetracknoir/tracker.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index e86e095d..eb6348ca 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -128,12 +128,9 @@ void Tracker::run() {
if (compensate)
{
- const double yi = mainApp->axis(Yaw).invert * mainApp->axis(TX).invert;
- const double pi = mainApp->axis(Pitch).invert * mainApp->axis(TY).invert;
- const double ri = mainApp->axis(Roll).invert * mainApp->axis(TZ).invert;
- const auto H = output_camera.axes[Yaw] * M_PI / 180 * yi;
- const auto P = output_camera.axes[Pitch] * M_PI / 180 * pi;
- const auto B = output_camera.axes[Roll] * M_PI / 180 * ri;
+ const auto H = output_camera.axes[Yaw] * M_PI / 180;
+ const auto P = output_camera.axes[Pitch] * M_PI / 180;
+ const auto B = output_camera.axes[Roll] * M_PI / 180;
const auto cosH = cos(H);
const auto sinH = sin(H);