summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp4
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h3
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp2
3 files changed, 6 insertions, 3 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index ac514813..5975f701 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -153,7 +153,7 @@ void Tracker_PT::set_fov(int value)
camera.set_fov(value);
}
-void Tracker_PT::start_tracker(QFrame* video_frame)
+module_status Tracker_PT::start_tracker(QFrame* video_frame)
{
//video_frame->setAttribute(Qt::WA_NativeWindow);
preview_size = video_frame->size();
@@ -172,6 +172,8 @@ void Tracker_PT::start_tracker(QFrame* video_frame)
maybe_reopen_camera();
start(QThread::HighPriority);
+
+ return status_ok();
}
void Tracker_PT::data(double *data)
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index 6c2923c0..ad7f56ff 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -40,12 +40,13 @@ using namespace types;
class Tracker_PT : public QThread, public ITracker
{
Q_OBJECT
+
friend class camera_dialog;
friend class ::TrackerDialog_PT;
public:
Tracker_PT();
~Tracker_PT() override;
- void start_tracker(QFrame* parent_window) override;
+ module_status start_tracker(QFrame* parent_window) override;
void data(double* data) override;
Affine pose();
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index 0746a85e..2c3cbd07 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -63,7 +63,7 @@ TrackerDialog_PT::TrackerDialog_PT()
tie_setting(s.auto_threshold, ui.auto_threshold);
- connect( ui.tcalib_button,SIGNAL(toggled(bool)), this,SLOT(startstop_trans_calib(bool)));
+ connect(ui.tcalib_button,SIGNAL(toggled(bool)), this, SLOT(startstop_trans_calib(bool)));
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));