From bc65f5ce142ed203e91d8b35a1e61009ef4fb098 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Mon, 19 Dec 2016 02:00:08 -0500 Subject: allow for easy config dumping --- include/survive.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/survive.h b/include/survive.h index b574711..f64091f 100644 --- a/include/survive.h +++ b/include/survive.h @@ -24,19 +24,17 @@ struct SurviveObject int8_t charging:1; int8_t ison:1; int8_t additional_flags:6; - int8_t sensors; - int8_t nr_locations; SV_FLOAT * sensor_locations; - SV_FLOAT * sensor_normals; + int8_t nr_locations; //Flood info, for calculating which laser is currently sweeping. + int8_t oldcode; + int16_t total_photos; int32_t last_photo_time; int32_t total_photo_time; int32_t total_pulsecode_time; - int16_t total_photos; - int8_t oldcode; }; typedef void (*text_feedback_fnptr)( struct SurviveContext * ctx, const char * fault ); @@ -54,7 +52,7 @@ void survive_install_imu_fn( struct SurviveContext * ctx, imu_process_func fbp void survive_close( struct SurviveContext * ctx ); int survive_poll(); - +struct SurviveObject * survive_get_so_by_name( struct SurviveContext * ctx, const char * name ); //Utilitiy functions. int survive_simple_inflate( struct SurviveContext * ctx, const char * input, int inlen, char * output, int outlen ); -- cgit v1.2.3