diff options
Diffstat (limited to 'FTNoIR_Tracker_UDP')
-rw-r--r-- | FTNoIR_Tracker_UDP/ftnoir_tracker_base.h | 2 | ||||
-rw-r--r-- | FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp | 18 |
2 files changed, 9 insertions, 11 deletions
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_base.h b/FTNoIR_Tracker_UDP/ftnoir_tracker_base.h index ac4b2956..60f0caf3 100644 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_base.h +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_base.h @@ -36,7 +36,7 @@ typedef ITracker* TRACKERHANDLE; # define EXTERN_C
#endif // __cplusplus
-// Factory function that creates instances of the Xyz object.
+// Factory function that creates instances of the Tracker object.
EXTERN_C
FTNOIR_TRACKER_BASE_EXPORT
TRACKERHANDLE
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp index eaa0b177..d3c67d71 100644 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp @@ -65,14 +65,12 @@ FTNoIR_Tracker_UDP::~FTNoIR_Tracker_UDP() ::CloseHandle(m_WaitThread);
if (inSocket) {
- inSocket->disconnectFromHost();
- inSocket->waitForDisconnected();
+ inSocket->close();
delete inSocket;
}
if (outSocket) {
- outSocket->disconnectFromHost();
- outSocket->waitForDisconnected();
+ outSocket->close();
delete outSocket;
}
}
@@ -143,12 +141,12 @@ void FTNoIR_Tracker_UDP::StartTracker() void FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
{
- newHeadPose.x += 1.0f;
- newHeadPose.y += 2.0f;
- newHeadPose.z += 3.0f;
- newHeadPose.yaw += 4.0f;
- newHeadPose.pitch += 5.0f;
- newHeadPose.roll += 6.0f;
+ //newHeadPose.x += 1.0f;
+ //newHeadPose.y += 2.0f;
+ //newHeadPose.z += 3.0f;
+ //newHeadPose.yaw += 4.0f;
+ //newHeadPose.pitch += 5.0f;
+ //newHeadPose.roll += 6.0f;
data->x = newHeadPose.x;
data->y = newHeadPose.y;
|