diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-12 23:49:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-12 23:49:49 +0200 |
commit | c98efcbfdebd2e6ce85cb1b3b08a1bc48f3d968b (patch) | |
tree | 137fcdf1032c36882d846ee592ba76523f102691 /facetracknoir/tracker.cpp | |
parent | b62e80279532675894d352cbbbf54233f161546b (diff) |
Always load alternative curve settings, not just after dialog open
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);
}
|