summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-13 00:45:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-13 00:45:20 +0200
commitb89195cee53549704e0807a802f5f05ed5d4e87a (patch)
tree1042585a3bc0a9deabe491d5c00322736e37d99f /facetracknoir/tracker.cpp
parentc98efcbfdebd2e6ce85cb1b3b08a1bc48f3d968b (diff)
Fix last commit, remove duplicated code
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r--facetracknoir/tracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index c3a61263..ed39765d 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -169,6 +169,8 @@ void Tracker::run() {
if (Libraries->pTracker) {
bTracker1Confid = Libraries->pTracker->GiveHeadPoseData(&newpose);
}
+
+ confid = (bTracker1Confid || bTracker2Confid);
bool newp = last.yaw != newpose.yaw ||
last.pitch != newpose.pitch ||
@@ -301,7 +303,6 @@ void Tracker::run() {
}
//for lower cpu load
- confid = (bTracker1Confid || bTracker2Confid);
usleep(1000);
}