summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FTN
diff options
context:
space:
mode:
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;