summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-06-14 18:33:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-06-14 18:33:41 +0200
commite22c5382d17919d65bb94bbf0f74ba96537a5639 (patch)
tree5b15b509242a2c279b91d2f2d25791030b485f53 /FTNoIR_Tracker_PT
parent379f05cbaa02d328b538134a719f3a6a2400d6c6 (diff)
pt: adjust dt range
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
index d1e51bfc..ef72f9a2 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
@@ -68,8 +68,8 @@ void Tracker::run()
QTextStream log_stream(&log_file);
#endif
- time.start();
- float dt;
+ time.start();
+ double dt;
bool new_frame;
forever
{
@@ -77,7 +77,7 @@ void Tracker::run()
if (commands & PAUSE) continue;
commands = 0;
apply_inner();
- dt = time.start() / 1000.0;
+ dt = time.start() / 1000000000.;
new_frame = camera.get_frame(dt, &frame);