From a7fe9ca724986de10e5391512cf9064f5516f940 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 Oct 2014 20:38:19 +0200 Subject: less crapola --- ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp') 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); -- cgit v1.2.3