From c98efcbfdebd2e6ce85cb1b3b08a1bc48f3d968b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Apr 2013 23:49:49 +0200 Subject: Always load alternative curve settings, not just after dialog open --- facetracknoir/tracker.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'facetracknoir/tracker.cpp') 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); } -- cgit v1.2.3