From 8a0831f2b9e458d8f1976c27f7865166ad8de6a4 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Wed, 21 Mar 2018 09:11:54 -0600 Subject: Moved pose to linmath to support stronger typing --- include/libsurvive/survive_types.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/libsurvive/survive_types.h') diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h index 7253df0..3ea6253 100644 --- a/include/libsurvive/survive_types.h +++ b/include/libsurvive/survive_types.h @@ -1,6 +1,7 @@ #ifndef _SURVIVE_TYPES_H #define _SURVIVE_TYPES_H +#include "linmath.h" #include "stdint.h" #ifdef __cplusplus @@ -21,12 +22,8 @@ extern "C" { #define _FLT_format2(f) f##_format #define _FLT_format(f) _FLT_format2(f) #define FLT_format _FLT_format(FLT) - -typedef struct SurvivePose -{ - FLT Pos[3]; - FLT Rot[4]; //This is the [wxyz] quaternion, in wxyz format. -} SurvivePose; + +typedef LinmathPose SurvivePose; //Careful with this, you can't just add another one right now, would take minor changes in survive_data.c and the cal tools. //It will also require a recompile. TODO: revisit this and correct the comment once fixed. -- cgit v1.2.3