summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FTN
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-10-22 15:28:38 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-10-22 15:28:38 +0000
commit17fcad9850754d2d0ec662c46e7940b07b64804c (patch)
tree5875c85a90c8ff3b52bb360f0f1dde9a81b85544 /FTNoIR_Protocol_FTN
parentc4f8fe0c097a3282270db7eecda4c7eb533b99fc (diff)
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@94 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_FTN')
-rw-r--r--FTNoIR_Protocol_FTN/FTNoIR_FTNControls.ui2
-rw-r--r--FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp4
-rw-r--r--FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/FTNoIR_Protocol_FTN/FTNoIR_FTNControls.ui b/FTNoIR_Protocol_FTN/FTNoIR_FTNControls.ui
index 03de6e59..56983fbe 100644
--- a/FTNoIR_Protocol_FTN/FTNoIR_FTNControls.ui
+++ b/FTNoIR_Protocol_FTN/FTNoIR_FTNControls.ui
@@ -107,7 +107,7 @@
<item row="2" column="1">
<widget class="QSpinBox" name="spinPortNumber">
<property name="minimum">
- <number>5550</number>
+ <number>1000</number>
</property>
<property name="maximum">
<number>10000</number>
diff --git a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
index 70556835..9326c544 100644
--- a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
+++ b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.cpp
@@ -94,7 +94,9 @@ quint16 senderPort;
//
// Copy the Raw measurements directly to the client.
//
+ frame_counter += 1;
TestData = headpose->position;
+ TestData.frame_number = frame_counter;
//
// Try to send an UDP-message to the receiver
@@ -149,6 +151,8 @@ bool FTNoIR_Protocol_FTN::checkServerInstallationOK( HANDLE handle )
inSocket = 0;
outSocket = 0;
+ frame_counter = 0;
+
//
// Create UDP-sockets.
//
diff --git a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.h b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.h
index 5f8d6b10..f90c0eac 100644
--- a/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.h
+++ b/FTNoIR_Protocol_FTN/FTNoIR_Protocol_FTN.h
@@ -54,6 +54,7 @@ public:
private:
THeadPoseData TestData;
+ long frame_counter;
QUdpSocket *inSocket; // Receive from FaceTrackNoIR
QUdpSocket *outSocket; // Send to FaceTrackNoIR
qint32 cmd;