aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
blob: c3443062b658f775fde5d96345424ca07bb187a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 );
	}
}