summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-11 20:38:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-11 20:38:19 +0200
commita7fe9ca724986de10e5391512cf9064f5516f940 (patch)
treebaaa09dd59e861aa35128d531cdec79bc451e0fe /ftnoir_tracker_pt
parent8f0578cca48ab6757b0ddb6a876cbc90fa1d82b7 (diff)
less crapola
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index e64c4ca7..8b77b681 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -50,18 +50,14 @@ void Tracker::reset_command(Command command)
void Tracker::run()
{
- qDebug()<< "pt: thread started";
-
#ifdef PT_PERF_LOG
QFile log_file(QCoreApplication::applicationDirPath() + "/PointTrackerPerformance.txt");
if (!log_file.open(QIODevice::WriteOnly | QIODevice::Text)) return;
QTextStream log_stream(&log_file);
#endif
time.start();
- while(1)
+ while((commands & ABORT) == 0)
{
- if (commands & ABORT) break;
- commands = 0;
apply_inner();
const double dt = time.start() * 1e-9;
const bool new_frame = camera.get_frame(dt, &frame);