diff options
author | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-25 17:02:38 +0000 |
---|---|---|
committer | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-25 17:02:38 +0000 |
commit | 0948938ea70784b7b0607a709a199d1acefda949 (patch) | |
tree | e869eb21d046e1a4f33199471eeb42751d938abf /FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp | |
parent | 72d392a3741a854847351d44fa551751ffd9480f (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_PPJOY/FTNoIR_Protocol_PPJOY.cpp')
-rw-r--r-- | FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp index bfecfeb3..f533fdf3 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp @@ -128,7 +128,7 @@ void FTNoIR_Protocol_PPJOY::loadSettings() { //
// Update Headpose in Game.
//
-void FTNoIR_Protocol_PPJOY::sendHeadposeToGame( T6DOF *headpose ) {
+void FTNoIR_Protocol_PPJOY::sendHeadposeToGame( THeadPoseData *headpose ) {
float virtPosX;
float virtPosY;
float virtPosZ;
@@ -140,13 +140,13 @@ float virtRotZ; //
// Copy the Raw measurements.
//
- virtRotX = headpose->position.pitch;
- virtRotY = headpose->position.yaw;
- virtRotZ = headpose->position.roll;
+ virtRotX = headpose->pitch;
+ virtRotY = headpose->yaw;
+ virtRotZ = headpose->roll;
- virtPosX = headpose->position.x;
- virtPosY = headpose->position.y;
- virtPosZ = headpose->position.z;
+ virtPosX = headpose->x;
+ virtPosY = headpose->y;
+ virtPosZ = headpose->z;
/* Initialise the IOCTL data structure */
JoyState.Signature= JOYSTICK_STATE_V1;
|