summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-16 23:46:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-16 23:54:29 +0200
commitb100e39826bd17ef7f5e3d1ec06f2afb8c7af9c1 (patch)
treee01ad6b1126dc43367892377833f4ec82afee150
parent72ec704bfeedfc152cd7e7118bb2f3cf935e1f57 (diff)
gui: get rotation sign right
-rw-r--r--gui/ui.cpp2
-rw-r--r--gui/ui.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 2feb806b..35c7dd26 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -375,7 +375,7 @@ void MainWindow::stopTracker()
void MainWindow::display_pose(const double *mapped, const double *raw)
{
- ui.pose_display->rotateBy(mapped[Yaw], mapped[Pitch], mapped[Roll],
+ ui.pose_display->rotateBy(mapped[Yaw], -mapped[Pitch], -mapped[Roll],
mapped[TX], mapped[TY], mapped[TZ]);
if (mapping_widget)
diff --git a/gui/ui.h b/gui/ui.h
index 7509e318..7415d3d4 100644
--- a/gui/ui.h
+++ b/gui/ui.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, Stanislaw Halik <sthalik@misaki.pl>
+/* Copyright (c) 2013-2016, Stanislaw Halik <sthalik@misaki.pl>
* Permission to use, copy, modify, and/or distribute this
* software for any purpose with or without fee is hereby granted,