summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-01 17:10:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-01 17:10:06 +0200
commitfc03209f0819e2d247f0b24ed02842fc5505ef73 (patch)
treec1ee719eaf89babd9e90f5bd13863d43fa841a51 /ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
parent95624a290d9894966e3dab9ffc7064bbb2b51f18 (diff)
pt, aruco, ht: select camera by name, not index
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index acf4daa0..b14d803a 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -6,6 +6,7 @@
*/
#include "ftnoir_tracker_pt.h"
+#include "opentrack/camera-names.hpp"
#include <QHBoxLayout>
#include <cmath>
#include <QDebug>
@@ -129,7 +130,7 @@ void Tracker::apply_settings()
{
qDebug()<<"Tracker:: Applying settings";
QMutexLocker lock(&mutex);
- camera.set_device_index(s.cam_index);
+ camera.set_device_index(camera_name_to_index(s.camera_name));
camera.set_res(s.cam_res_x, s.cam_res_y);
camera.set_fps(s.cam_fps);
qDebug()<<"Tracker::apply ends";