From 893b79383a71f5ce8a34f756445c1494d049a283 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 10 Dec 2013 03:29:38 +0100 Subject: get rid of 'confid' --- facetracknoir/tracker.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index dfc5d230..371c10a6 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -87,9 +87,6 @@ static void t_compensate(double* input, double* output) void Tracker::run() { T6DOF offset_camera; - bool bTracker1Confid = false; - bool bTracker2Confid = false; - double newpose[6] = {0}; double last_post_filter[6] ; @@ -113,21 +110,18 @@ void Tracker::run() { break; if (Libraries->pSecondTracker) { - bTracker2Confid = Libraries->pSecondTracker->GiveHeadPoseData(newpose); + Libraries->pSecondTracker->GiveHeadPoseData(newpose); } if (Libraries->pTracker) { - bTracker1Confid = Libraries->pTracker->GiveHeadPoseData(newpose); + Libraries->pTracker->GiveHeadPoseData(newpose); } { QMutexLocker foo(&mtx); - const bool confid = bTracker1Confid || bTracker2Confid; - if ( confid ) { - for (int i = 0; i < 6; i++) - mainApp->axis(i).headPos = newpose[i]; - } + for (int i = 0; i < 6; i++) + mainApp->axis(i).headPos = newpose[i]; if (do_center) { for (int i = 0; i < 6; i++) -- cgit v1.2.3