From f6968a7453b9f66a695f76a21b0d6046b585d9d3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 20 Oct 2013 16:44:06 +0200 Subject: Implement axis limits Signed-off-by: Stanislaw Halik --- ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ftnoir_tracker_ht') diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp index e31b6d3f..62606395 100644 --- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp +++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp @@ -224,6 +224,12 @@ bool Tracker::GiveHeadPoseData(double *data) if (enableTZ) data[TZ] = shm->result.tz; ret = true; + if (fabs(data[Yaw]) > 60 || fabs(data[Pitch]) > 50 || fabs(data[Roll]) > 40) + { + shm->pause = true; + } + } else { + shm->pause = false; } lck_shm.unlock(); -- cgit v1.2.3