From e7ce17f9e2c1b4cc21663f54a6ed81a4d12755ef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Oct 2016 01:44:35 +0200 Subject: gui/main-window: round raw/mapped value display Otherwise infinitesimal differences prevent from reaching max mapped value. --- gui/main-window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') 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]); -- cgit v1.2.3