From 9c82bd86dfbc0b003c51c07d4c54b97f1df4b3c2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Oct 2018 16:28:14 +0200 Subject: cv/tcal: don't count separate roll as sample --- tracker-aruco/ftnoir_tracker_aruco.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index b3d75e7d..502b50ad 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -452,7 +452,7 @@ void aruco_tracker::data(double *data) } aruco_dialog::aruco_dialog() : - calibrator(1, 0, 2) + calibrator(1, 0) { tracker = nullptr; calib_timer.setInterval(100); @@ -493,8 +493,8 @@ void aruco_dialog::toggleCalibrate() { cleanupCalib(); - cv::Vec3d pos; - std::tie(pos, std::ignore) = calibrator.get_estimate(); + auto [ pos, nvals ] = calibrator.get_estimate(); + (void) nvals; s.headpos_x = -pos(0); s.headpos_y = -pos(1); s.headpos_z = -pos(2); -- cgit v1.2.3