From 8662964ed74af867b2f2c19782478f709e586fc0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Oct 2014 02:28:50 +0200 Subject: drop decimal places for rot/trans in UI --- facetracknoir/facetracknoir.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'facetracknoir/facetracknoir.cpp') diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index f689cb5f..73dae199 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -353,6 +353,12 @@ void FaceTrackNoIR::showHeadPose() if (mapping_widget) mapping_widget->update(); + + for (int i = 0; i < 6; i++) + { + mapped[i] = (int) mapped[i]; + raw[i] = (int) raw[i]; + } ui.lcdNumX->display(raw[TX]); ui.lcdNumY->display(raw[TY]); -- cgit v1.2.3