From 51a3eb679889844a0f8c8643034615dc12a7f523 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Sat, 29 Jan 2011 12:58:57 +0000 Subject: Testing filter. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@45 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FTNoIR_Tracker_UDP/ftnoir_tracker_base.h | 2 +- FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'FTNoIR_Tracker_UDP') 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; -- cgit v1.2.3