summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_hatire
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_hatire')
-rw-r--r--ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp7
-rw-r--r--ftnoir_tracker_hatire/ftnoir_tracker_hat.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp b/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
index b933dd14..bcef6753 100644
--- a/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
+++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat.cpp
@@ -323,7 +323,7 @@ void FTNoIR_Tracker::StartTracker(QFrame*)
#define THeadPoseData double
#endif
-bool FTNoIR_Tracker::GiveHeadPoseData(THeadPoseData *data)
+void FTNoIR_Tracker::GiveHeadPoseData(THeadPoseData *data)
{
QMutexLocker lck(&mutex);
while (dataRead.length()>=30) {
@@ -354,7 +354,7 @@ bool FTNoIR_Tracker::GiveHeadPoseData(THeadPoseData *data)
if (CptError>50) {
emit sendMsgInfo("Can't find HAT frame") ;
CptError=0;
- return false;
+ return;
}
#ifdef OPENTRACK_API
data[frame_cnt] = (long) HAT.Code;
@@ -425,9 +425,6 @@ bool FTNoIR_Tracker::GiveHeadPoseData(THeadPoseData *data)
// For debug
//data->x=dataRead.length();
//data->y=CptError;
-
- return true;
-
}
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h
index a1b4ecda..04c5fb61 100644
--- a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h
+++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h
@@ -29,7 +29,7 @@ public:
#ifdef OPENTRACK_API
virtual void StartTracker(QFrame*);
- virtual bool GiveHeadPoseData(double* data);
+ virtual void GiveHeadPoseData(double* data);
#else
void Initialize( QFrame *videoframe );
virtual void StartTracker(HWND parent_window);