summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_SC
diff options
context:
space:
mode:
authorPatrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb>2012-09-25 17:02:38 +0000
committerPatrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb>2012-09-25 17:02:38 +0000
commit0948938ea70784b7b0607a709a199d1acefda949 (patch)
treee869eb21d046e1a4f33199471eeb42751d938abf /FTNoIR_Protocol_SC
parent72d392a3741a854847351d44fa551751ffd9480f (diff)
Changed centering algorithm to use proper matrix algebra.
Cleaned up T6DOF structure. Updated vc_9 project files. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@169 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_SC')
-rw-r--r--FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp14
-rw-r--r--FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
index 1c3290c6..6c0cf42f 100644
--- a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
+++ b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
@@ -96,16 +96,16 @@ void FTNoIR_Protocol_SC::loadSettings() {
//
// Update Headpose in Game.
//
-void FTNoIR_Protocol_SC::sendHeadposeToGame( T6DOF *headpose ) {
+void FTNoIR_Protocol_SC::sendHeadposeToGame( THeadPoseData *headpose ) {
- virtSCRotX = -1.0f * headpose->position.pitch; // degrees
- virtSCRotY = -1.0f * headpose->position.yaw;
- virtSCRotZ = headpose->position.roll;
+ virtSCRotX = -1.0f * headpose->pitch; // degrees
+ virtSCRotY = -1.0f * headpose->yaw;
+ virtSCRotZ = headpose->roll;
- virtSCPosX = headpose->position.x/100.f; // cm to meters
- virtSCPosY = headpose->position.y/100.f;
- virtSCPosZ = -1.0f * headpose->position.z/100.f;
+ virtSCPosX = headpose->x/100.f; // cm to meters
+ virtSCPosY = headpose->y/100.f;
+ virtSCPosZ = -1.0f * headpose->z/100.f;
//
// It's only useful to send data, if the connection was made.
diff --git a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
index 33e08838..cf8c3e5c 100644
--- a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
+++ b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
@@ -87,7 +87,7 @@ public:
void Initialize();
bool checkServerInstallationOK( HANDLE handle );
- void sendHeadposeToGame( T6DOF *headpose );
+ void sendHeadposeToGame( THeadPoseData *headpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FSX SimConnect"); };