diff options
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r-- | facetracknoir/tracker.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index f624d6a1..c3a61263 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -170,8 +170,6 @@ void Tracker::run() { bTracker1Confid = Libraries->pTracker->GiveHeadPoseData(&newpose);
}
- confid = (bTracker1Confid || bTracker2Confid);
-
bool newp = last.yaw != newpose.yaw ||
last.pitch != newpose.pitch ||
last.roll != newpose.roll ||
@@ -291,13 +289,19 @@ void Tracker::run() { GlobalPose->Z.curvePtr->setTrackingActive( false );
GlobalPose->Yaw.curvePtr->setTrackingActive( false );
GlobalPose->Pitch.curvePtr->setTrackingActive( false );
- GlobalPose->Pitch.curvePtrAlt->setTrackingActive( false );
GlobalPose->Roll.curvePtr->setTrackingActive( false );
+ GlobalPose->X.curvePtrAlt->setTrackingActive( false );
+ GlobalPose->Y.curvePtrAlt->setTrackingActive( false );
+ GlobalPose->Z.curvePtrAlt->setTrackingActive( false );
+ GlobalPose->Yaw.curvePtrAlt->setTrackingActive( false );
+ GlobalPose->Pitch.curvePtrAlt->setTrackingActive( false );
+ GlobalPose->Roll.curvePtrAlt->setTrackingActive( false );
if (Libraries->pFilter)
Libraries->pFilter->Initialize();
}
//for lower cpu load
+ confid = (bTracker1Confid || bTracker2Confid);
usleep(1000);
}
|