summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp')
-rw-r--r--FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
index a2a9505a..9234c4d4 100644
--- a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
+++ b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
@@ -97,7 +97,7 @@ void FTNoIR_Protocol_FG::loadSettings() {
//
// Update Headpose in Game.
//
-void FTNoIR_Protocol_FG::sendHeadposeToGame( T6DOF *headpose ) {
+void FTNoIR_Protocol_FG::sendHeadposeToGame( THeadPoseData *headpose ) {
int no_bytes;
QHostAddress sender;
quint16 senderPort;
@@ -109,12 +109,12 @@ char data[100];
//
// Copy the Raw measurements directly to the client.
//
- FlightData.x = headpose->position.x;
- FlightData.y = headpose->position.y;
- FlightData.z = headpose->position.z;
- FlightData.p = headpose->position.pitch;
- FlightData.h = headpose->position.yaw;
- FlightData.r = headpose->position.roll;
+ FlightData.x = headpose->x;
+ FlightData.y = headpose->y;
+ FlightData.z = headpose->z;
+ FlightData.p = headpose->pitch;
+ FlightData.h = headpose->yaw;
+ FlightData.r = headpose->roll;
FlightData.status = fg_cmd;
//