diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-20 16:44:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-20 16:44:06 +0200 |
commit | f6968a7453b9f66a695f76a21b0d6046b585d9d3 (patch) | |
tree | b3732557496bfafff9f566f64eee356ada0a1cba /ftnoir_tracker_ht | |
parent | 8c55d5fc650d49245fa94408eaaa12cf40f27849 (diff) |
Implement axis limits
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r-- | ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |