From eb7a93cefc958421d3bebbedc1163c73ae2e2778 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Fri, 2 Dec 2016 01:23:59 -0500 Subject: Update: Reading almost everything! --- src/survive_process.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/survive_process.c (limited to 'src/survive_process.c') 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 ); + } +} -- cgit v1.2.3