summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp')
-rw-r--r--FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
index 1a64261e..afeae10d 100644
--- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
+++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
@@ -127,7 +127,15 @@ void FTNoIR_Tracker_UDP::StartTracker()
return;
}
-void FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
+void FTNoIR_Tracker_UDP::StopTracker()
+{
+ //
+ // OK, the thread is not stopped, doing this. That might be dangerous anyway...
+ //
+ return;
+}
+
+bool FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
{
data->x = newHeadPose.x;
data->y = newHeadPose.y;
@@ -135,7 +143,7 @@ void FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
data->yaw = newHeadPose.yaw;
data->pitch = newHeadPose.pitch;
data->roll = newHeadPose.roll;
- return;
+ return true;
}
bool FTNoIR_Tracker_UDP::setParameterValue(const int index, const float newvalue)