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.cpp18
1 files changed, 8 insertions, 10 deletions
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;