aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.h
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-21 01:59:08 -0500
committercnlohr <lohr85@gmail.com>2017-02-21 01:59:08 -0500
commit5a11716edeb85bc01c38bfc4ce174d101cac0a06 (patch)
treeddb4e9b87198c3175a245797523b56595b53ef13 /src/survive_cal.h
parentbd89d46cb01f7069166e85f017f169e07acc7094 (diff)
downloadlibsurvive-5a11716edeb85bc01c38bfc4ce174d101cac0a06.tar.gz
libsurvive-5a11716edeb85bc01c38bfc4ce174d101cac0a06.tar.bz2
Working on it, not quite tested.
Diffstat (limited to 'src/survive_cal.h')
-rw-r--r--src/survive_cal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/survive_cal.h b/src/survive_cal.h
index 42ff1ee..dd69b57 100644
--- a/src/survive_cal.h
+++ b/src/survive_cal.h
@@ -30,20 +30,22 @@ int survive_cal_get_status( struct SurviveContext * ctx, char * description, int
void survive_cal_light( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length );
void survive_cal_angle( struct SurviveObject * so, int sensor_id, int acode, uint32_t timecode, FLT length, FLT angle );
-#define MAX_TO_CAL 96
+#define MAX_SENSORS_TO_CAL 96
#define DRPTS 512
struct SurviveCalData
{
+ struct SurviveContext * ctx;
//OOTX Data is sync'd off of the sync pulses coming from the lighthouses.
ootx_decoder_context ootx_decoders[NUM_LIGHTHOUSES];
//For statistics-gathering phase.
- FLT all_lengths[MAX_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS];
- FLT all_angles[MAX_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS];
- int16_t all_counts[MAX_TO_CAL][NUM_LIGHTHOUSES][2];
+ FLT all_lengths[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS];
+ FLT all_angles[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS];
+ int16_t all_counts[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2];
int16_t peak_counts;
int8_t found_common;
+ int8_t times_found_common;
//Stage:
// 0: Idle