aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/poser.h
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-08 01:43:56 -0500
committercnlohr <lohr85@gmail.com>2017-03-08 01:43:56 -0500
commitc65498054c77192b2a12fdb5ef44439a14110292 (patch)
tree90120d0a3d529aca81d77fe825229f8a6d641bc6 /include/libsurvive/poser.h
parent2a4a803b2f162692ca11e700b32da0a77049bfd2 (diff)
downloadlibsurvive-c65498054c77192b2a12fdb5ef44439a14110292.tar.gz
libsurvive-c65498054c77192b2a12fdb5ef44439a14110292.tar.bz2
Architect the way the posers receive data.
Diffstat (limited to 'include/libsurvive/poser.h')
-rw-r--r--include/libsurvive/poser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libsurvive/poser.h b/include/libsurvive/poser.h
index c514953..98c926e 100644
--- a/include/libsurvive/poser.h
+++ b/include/libsurvive/poser.h
@@ -9,6 +9,7 @@ typedef enum PoserType_t
POSERDATA_IMU,
POSERDATA_LIGHT, //Single lighting event.
POSERDATA_FULL_SCENE, //Full, statified X, Y sweep data for both lighthouses.
+ POSERDATA_DISASSOCIATE, //If you get this, it doesn't contain data. It just tells you to please disassociate from the current SurviveObject and delete your poserdata.
} PoserType;
typedef struct
@@ -24,6 +25,7 @@ typedef struct
FLT accel[3];
FLT gyro[3];
FLT mag[3];
+ uint32_t timecode; //In object-local ticks.
} PoserDataIMU;
typedef struct
@@ -47,7 +49,7 @@ typedef struct
PoserDataIMU lastimu;
} PoserDataFullScene;
-//When you register your posers using the internal system,
+//When you write your posers, use the following definition, and register with REGISTER_LINKTIME.
typedef int (*PoserCB)( SurviveObject * so, PoserData * pd );