diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-09 11:48:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-09 11:48:11 +0200 |
commit | 62a721226d5e08f57f1bda12a7f570be6be77635 (patch) | |
tree | 85fbf36c608a0afb2795708d95196d32b692e97a /tracker-pt/ftnoir_tracker_pt.h | |
parent | 7b07d63e8129b620d275845c5d79573aac72a800 (diff) |
tracker/pt: no need for 4-byte command mask
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 6a889f13..b6815bd7 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -49,7 +49,8 @@ protected: void run() override; private: // thread commands - enum Command { + enum Command : unsigned char + { ABORT = 1<<0 }; void set_command(Command command); @@ -57,8 +58,6 @@ private: bool get_focal_length(float &ret); - volatile int commands; - QMutex camera_mtx; CVCamera camera; PointExtractor point_extractor; @@ -72,6 +71,7 @@ private: cv::Mat frame; volatile bool ever_success; + volatile unsigned char commands; static constexpr float rad2deg = float(180/3.14159265); //static constexpr float deg2rad = float(3.14159265/180); |