aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.h
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-16 18:28:54 -0500
committercnlohr <lohr85@gmail.com>2017-02-16 18:28:54 -0500
commitbd89d46cb01f7069166e85f017f169e07acc7094 (patch)
tree0cfe40bc97b956d818f4658cae5d69e59f2ab3e5 /src/survive_cal.h
parent9bba1f9e7888f512a587f76179b9dd8f389c7ae8 (diff)
downloadlibsurvive-bd89d46cb01f7069166e85f017f169e07acc7094.tar.gz
libsurvive-bd89d46cb01f7069166e85f017f169e07acc7094.tar.bz2
closing in on finding common cal points.
Diffstat (limited to 'src/survive_cal.h')
-rw-r--r--src/survive_cal.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/survive_cal.h b/src/survive_cal.h
index b9d4b11..42ff1ee 100644
--- a/src/survive_cal.h
+++ b/src/survive_cal.h
@@ -35,11 +35,6 @@ void survive_cal_angle( struct SurviveObject * so, int sensor_id, int acode, uin
struct SurviveCalData
{
- //Stage:
- // 0: Idle
- // 1: Collecting OOTX data.
- int stage;
-
//OOTX Data is sync'd off of the sync pulses coming from the lighthouses.
ootx_decoder_context ootx_decoders[NUM_LIGHTHOUSES];
@@ -47,7 +42,13 @@ struct SurviveCalData
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];
- int peak_counts;
+ int16_t peak_counts;
+ int8_t found_common;
+
+ //Stage:
+ // 0: Idle
+ // 1: Collecting OOTX data.
+ int8_t stage;
};