aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/poser.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-11 15:54:35 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-12 09:52:50 -0600
commit12f864db460dc6318694ec9e6d65f7740ae85749 (patch)
treed4527deed94acdb6b702dda758ba9803aef8ab21 /include/libsurvive/poser.h
parent95eab1b8938e0033a0aa0d10d6ec53d7d2782907 (diff)
downloadlibsurvive-12f864db460dc6318694ec9e6d65f7740ae85749.tar.gz
libsurvive-12f864db460dc6318694ec9e6d65f7740ae85749.tar.bz2
Preparing to add more to PoserData
Diffstat (limited to 'include/libsurvive/poser.h')
-rw-r--r--include/libsurvive/poser.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/libsurvive/poser.h b/include/libsurvive/poser.h
index 582590e..7e05184 100644
--- a/include/libsurvive/poser.h
+++ b/include/libsurvive/poser.h
@@ -20,12 +20,11 @@ typedef enum PoserType_t
typedef struct
{
PoserType pt;
- uint8_t data[0];
} PoserData;
typedef struct
{
- PoserType pt;
+ PoserData hdr;
uint8_t datamask; //0 = accel present, 1 = gyro present, 2 = mag present.
FLT accel[3];
FLT gyro[3];
@@ -35,7 +34,7 @@ typedef struct
typedef struct
{
- PoserType pt;
+ PoserData hdr;
int sensor_id;
int acode; //OOTX Code associated with this sweep. bit 1 indicates vertical(1) or horizontal(0) sweep
int lh; //Lighthouse making this sweep
@@ -46,7 +45,7 @@ typedef struct
typedef struct
{
- PoserType pt;
+ PoserData hdr;
//If "lengths[...]" < 0, means not a valid piece of sweep information.
FLT lengths[SENSORS_PER_OBJECT][NUM_LIGHTHOUSES][2];