diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-01-22 14:41:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-01-22 14:41:06 +0100 |
commit | 025a83e9d794857cc7b39040411051d635b5316e (patch) | |
tree | bd11e3e89f50557cc7c6d03e4c12f02623e70163 /gui/ui.cpp | |
parent | 066832ab3904d4e4555ac6f844beca44bad846bd (diff) |
gui: reorder for usability's sake
Diffstat (limited to 'gui/ui.cpp')
-rw-r--r-- | gui/ui.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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(); |