diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-09 10:52:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-09 11:08:42 +0200 |
commit | 5adefe58a9f927bb3fddb4ee7706492f7a6ec43e (patch) | |
tree | 046e986aa502cdda5d1cd4e12cdfd089768e7b40 /tracker-pt/ftnoir_tracker_pt.h | |
parent | e7aef7f4e9f85c472196850b54034a9ebdcca8e8 (diff) |
tracker/pt: fix float/double promotions
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 2cf63771..6a889f13 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -54,9 +54,9 @@ private: }; void set_command(Command command); void reset_command(Command command); - + bool get_focal_length(float &ret); - + volatile int commands; QMutex camera_mtx; @@ -70,11 +70,11 @@ private: settings_pt s; Timer time; cv::Mat frame; - + volatile bool ever_success; - static constexpr double rad2deg = 180.0/3.14159265; - static constexpr double deg2rad = 3.14159265/180.0; + static constexpr float rad2deg = float(180/3.14159265); + //static constexpr float deg2rad = float(3.14159265/180); }; class TrackerDll : public Metadata |