summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:29:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:29:38 +0100
commit893b79383a71f5ce8a34f756445c1494d049a283 (patch)
treebaaed722ce8382c48719c6663d454a1834873082 /facetracknoir
parent474e4f75998ca0782f5212c7365d107790cab5c6 (diff)
get rid of 'confid'
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp14
1 files 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++)