diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 00:45:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 00:45:20 +0200 |
commit | b89195cee53549704e0807a802f5f05ed5d4e87a (patch) | |
tree | 1042585a3bc0a9deabe491d5c00322736e37d99f /facetracknoir/tracker.cpp | |
parent | c98efcbfdebd2e6ce85cb1b3b08a1bc48f3d968b (diff) |
Fix last commit, remove duplicated code
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r-- | facetracknoir/tracker.cpp | 3 |
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);
}
|