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