diff options
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); |