diff options
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/survive_process.c b/src/survive_process.c new file mode 100644 index 0000000..c344306 --- /dev/null +++ b/src/survive_process.c @@ -0,0 +1,15 @@ +#include "survive_internal.h" + +void survive_light_process( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode ) +{ + //timeinsweep = 200,000 1/48,000,000ths of a second is "center-of-image" + printf( "L %s %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep ); +} + +void survive_imu_process( struct SurviveObject * so, int16_t * accelgyro, uint32_t timecode, int id ) +{ + if( so->codename[0] == 'H' ) + { + printf( "I %s %d %d %d %d %d %d %d %d\n", so->codename, timecode, accelgyro[0], accelgyro[1], accelgyro[2], accelgyro[3], accelgyro[4], accelgyro[5], id ); + } +} |