summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-26 15:54:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-26 15:54:58 +0200
commit829b046649d3de6a37dd0983f3e3beb8f033e19e (patch)
treebf35f0f82263fec7e3b69520ede4178621c29be3 /tracker-pt/ftnoir_tracker_pt.cpp
parent36d52b1d84f057712b0be1791a9b7981ee455495 (diff)
gui: remove several user-visible settings
- dynamic pose is now enable iff current model is cap - dynamic pose timeout is now always 500 ms - fov is now always 75
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-rwxr-xr-xtracker-pt/ftnoir_tracker_pt.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 8b0075d1..04d5b526 100755
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -58,17 +58,7 @@ void Tracker_PT::reset_command(Command command)
bool Tracker_PT::get_focal_length(double& ret)
{
- int fov_;
- switch (s.fov)
- {
- default:
- case 0:
- fov_ = 56;
- break;
- case 1:
- fov_ = 75;
- break;
- }
+ static constexpr const double fov_ = 75;
QMutexLocker l(&camera_mtx);
CamInfo info;
@@ -135,8 +125,8 @@ void Tracker_PT::run()
point_tracker.track(points,
PointModel(s),
fx,
- s.dynamic_pose,
- s.init_phase_timeout,
+ s.model_used == PointModel::Cap,
+ 500,
info.res_x,
info.res_y);
ever_success = true;