aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-02 01:23:59 -0500
committercnlohr <lohr85@gmail.com>2016-12-02 01:23:59 -0500
commiteb7a93cefc958421d3bebbedc1163c73ae2e2778 (patch)
tree8948ebd2508404aa4cadaea431e0fb960d3f4d0c /src/survive_process.c
parent6c247285514fd5ae3d7497871aba5beaaa832243 (diff)
downloadlibsurvive-eb7a93cefc958421d3bebbedc1163c73ae2e2778.tar.gz
libsurvive-eb7a93cefc958421d3bebbedc1163c73ae2e2778.tar.bz2
Update: Reading almost everything!
Diffstat (limited to 'src/survive_process.c')
-rw-r--r--src/survive_process.c15
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 );
+ }
+}