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.cpp8
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
index 5cb7bdf3..a6aaa29c 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
@@ -233,12 +233,12 @@ void Tracker::StopTracker(bool exit)
#define THeadPoseData double
#endif
-bool Tracker::GiveHeadPoseData(THeadPoseData *data)
+void Tracker::GiveHeadPoseData(THeadPoseData *data)
{
{
QMutexLocker lock(&mutex);
- if (!tracking_valid) return false;
+ if (!tracking_valid) return;
FrameTrafo X_CM = point_tracker.get_pose();
FrameTrafo X_MH(Matx33f::eye(), t_MH);
@@ -280,7 +280,9 @@ bool Tracker::GiveHeadPoseData(THeadPoseData *data)
if (bEnableRoll) data[Roll] = rad2deg * gamma;
#endif
}
- return true;
+#ifndef OPENTRACK_API
+ return true;
+#endif
}
//-----------------------------------------------------------------------------
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
index 64f282b6..5c8d35d2 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
@@ -44,7 +44,7 @@ public:
virtual void Initialize(QFrame *videoframe);
#ifdef OPENTRACK_API
virtual void StartTracker(QFrame* parent_window);
- virtual bool GiveHeadPoseData(double* data);
+ virtual void GiveHeadPoseData(double* data);
#else
virtual void StartTracker(HWND parent_window);
virtual void StopTracker(bool exit);