summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-05-31 19:51:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-05-31 19:51:53 +0200
commit30e5f9beba48eb28aa5d76b98c5e923a9e7733e9 (patch)
tree54adfd2d93cd5f9d6dae47de051da87bb346a644 /facetracknoir
parentfc0e8afb25c6fa32f299e8c7318c3bd2411673c9 (diff)
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.
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp5
1 files changed, 3 insertions, 2 deletions
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();