From 0948938ea70784b7b0607a709a199d1acefda949 Mon Sep 17 00:00:00 2001 From: Patrick Ruoff Date: Tue, 25 Sep 2012 17:02:38 +0000 Subject: 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 --- FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp') 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. -- cgit v1.2.3