summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:12:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-29 00:12:20 +0100
commit17615205b06eaf8bffb6bacd4f79696d856117a4 (patch)
tree47db82350138a0e21ef01322ec979fa8b331bc87 /facetracknoir
parent5e3891cc4d608813acc08626b38c5e5a4f123faf (diff)
fix compensation
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 50c7ad9d..e86e095d 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -128,9 +128,9 @@ void Tracker::run() {
if (compensate)
{
- const double yi = mainApp->axis(Yaw).invert;
- const double pi = mainApp->axis(Pitch).invert;
- const double ri = mainApp->axis(Roll).invert;
+ 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;