summaryrefslogtreecommitdiffhomepage
path: root/gui/ui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-01-22 14:41:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-01-22 14:41:06 +0100
commit025a83e9d794857cc7b39040411051d635b5316e (patch)
treebd11e3e89f50557cc7c6d03e4c12f02623e70163 /gui/ui.cpp
parent066832ab3904d4e4555ac6f844beca44bad846bd (diff)
gui: reorder for usability's sake
Diffstat (limited to 'gui/ui.cpp')
-rw-r--r--gui/ui.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 83ef523a..09739b92 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -359,11 +359,10 @@ void MainWindow::display_pose(const double *mapped, const double *raw)
if (mapping_widget)
mapping_widget->update();
- double mapped_[6], raw_[6];
+ double raw_[6];
for (int i = 0; i < 6; i++)
{
- mapped_[i] = (int) mapped[i];
raw_[i] = (int) raw[i];
}
@@ -374,13 +373,6 @@ void MainWindow::display_pose(const double *mapped, const double *raw)
ui.raw_pitch->display(raw_[Pitch]);
ui.raw_roll->display(raw_[Roll]);
- ui.pose_x->display(mapped_[TX]);
- ui.pose_y->display(mapped_[TY]);
- ui.pose_z->display(mapped_[TZ]);
- ui.pose_yaw->display(mapped_[Yaw]);
- ui.pose_pitch->display(mapped_[Pitch]);
- ui.pose_roll->display(mapped_[Roll]);
-
QString game_title;
if (libs.pProtocol)
game_title = libs.pProtocol->game_name();