From b100e39826bd17ef7f5e3d1ec06f2afb8c7af9c1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 16 Jul 2016 23:46:29 +0200 Subject: gui: get rotation sign right --- gui/ui.cpp | 2 +- gui/ui.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') 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 +/* Copyright (c) 2013-2016, Stanislaw Halik * Permission to use, copy, modify, and/or distribute this * software for any purpose with or without fee is hereby granted, -- cgit v1.2.3