diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-03 02:15:04 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-03 02:15:04 -0500 |
commit | 58b19da6848e64c9ca7aa47d8b3e0cd30db89d44 (patch) | |
tree | ae22943ea2072a92a50dc4524886d91341c52977 /include/libsurvive/survive_types.h | |
parent | b5ff8e57a6bd86931f00465f8009626dcd36d94d (diff) | |
download | libsurvive-58b19da6848e64c9ca7aa47d8b3e0cd30db89d44.tar.gz libsurvive-58b19da6848e64c9ca7aa47d8b3e0cd30db89d44.tar.bz2 |
Split out into some more things in the include folder. Getting closer to trying to have posers.
Diffstat (limited to 'include/libsurvive/survive_types.h')
-rw-r--r-- | include/libsurvive/survive_types.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h new file mode 100644 index 0000000..593819f --- /dev/null +++ b/include/libsurvive/survive_types.h @@ -0,0 +1,29 @@ +#ifndef _SURVIVE_TYPES_H +#define _SURVIVE_TYPES_H + +#ifndef FLT +#ifdef USE_DOUBLE +#define FLT double +#else +#define FLT float +#endif +#endif + + +//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. +#define NUM_LIGHTHOUSES 2 + +#define INTBUFFSIZE 64 +#define SENSORS_PER_OBJECT 32 + +struct SurviveObject; +struct SurviveContext; + +typedef void (*text_feedback_func)( struct SurviveContext * ctx, const char * fault ); +typedef void (*light_process_func)( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length ); +typedef void (*imu_process_func)( struct SurviveObject * so, int16_t * accelgyro, uint32_t timecode, int id ); +typedef void (*angle_process_func)( struct SurviveObject * so, int sensor_id, int acode, uint32_t timecode, FLT length, FLT angle ); + +#endif + |