summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
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;