From 30e5f9beba48eb28aa5d76b98c5e923a9e7733e9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 31 May 2015 19:51:53 +0200 Subject: ui: allow for octopus screen traversal The octopus will now traverse the screen in response to translation input. Previously it could only rotate, severely hampering its maneuverability. --- facetracknoir/ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'facetracknoir') diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index 997af5f0..2338a4b2 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -258,7 +258,7 @@ void MainWindow::stopTracker( ) { //ui.game_name->setText("Not connected"); pose_update_timer.stop(); - ui.pose_display->rotateBy(0, 0, 0); + ui.pose_display->rotateBy(0, 0, 0, 0, 0, 0); if (pTrackerDialog) { @@ -290,7 +290,8 @@ 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) mapping_widget->update(); -- cgit v1.2.3