summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-28 01:44:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-28 01:44:35 +0200
commite7ce17f9e2c1b4cc21663f54a6ed81a4d12755ef (patch)
tree94eac58bec1a92d1a5dce8c500f6dc4a01135bcf
parent644494f7cf27cb8dbe89a50885f57a7266a06e63 (diff)
gui/main-window: round raw/mapped value display
Otherwise infinitesimal differences prevent from reaching max mapped value.
-rw-r--r--gui/main-window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 51925c49..43d80be7 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -515,8 +515,8 @@ void MainWindow::display_pose(const double *mapped, const double *raw)
for (int i = 0; i < 6; i++)
{
- mapped_[i] = int(mapped[i]);
- raw_[i] = int(raw[i]);
+ mapped_[i] = iround(mapped[i]);
+ raw_[i] = iround(raw[i]);
}
ui.raw_x->display(raw_[TX]);