diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-01-29 12:58:57 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-01-29 12:58:57 +0000 |
commit | 51a3eb679889844a0f8c8643034615dc12a7f523 (patch) | |
tree | a93e97b35e06ef476c80375275ba190ab8d57741 /FTNoIR_Tracker_UDP | |
parent | de8ca77801f1f7de1e553967f80147ad89345912 (diff) |
Testing filter.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@45 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
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;
|