diff options
author | CNLohr <charles@cnlohr.com> | 2018-02-24 12:26:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-24 12:26:32 -0500 |
commit | 3fbd36f71cfe168ada14b8f58f023bb05e4d322b (patch) | |
tree | 0d830ad923f207d74cc8493e35757f22fc02369a /src/survive_cal.h | |
parent | 4da907623f5ce8a71ab9f5ec60112df45060b2aa (diff) | |
parent | dabb0764a080ad219e1bb477e8cf7386a1a4dc7c (diff) | |
download | libsurvive-3fbd36f71cfe168ada14b8f58f023bb05e4d322b.tar.gz libsurvive-3fbd36f71cfe168ada14b8f58f023bb05e4d322b.tar.bz2 |
Merge pull request #99 from jdavidberger/misc-bugfix
Fixed two minor / potential bugs
Diffstat (limited to 'src/survive_cal.h')
-rw-r--r-- | src/survive_cal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/survive_cal.h b/src/survive_cal.h index ae644d1..f5ef6dc 100644 --- a/src/survive_cal.h +++ b/src/survive_cal.h @@ -51,14 +51,14 @@ struct SurviveCalData ootx_decoder_context ootx_decoders[NUM_LIGHTHOUSES]; //For statistics-gathering phase. (Stage 2/3) - FLT all_lengths[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS]; - FLT all_angles[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS]; + FLT all_lengths[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS + 1]; + FLT all_angles[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2][DRPTS + 1]; int16_t all_counts[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][2]; int16_t peak_counts; int8_t found_common; int8_t times_found_common; - FLT all_sync_times[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][DRPTS]; + FLT all_sync_times[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES][DRPTS + 1]; int16_t all_sync_counts[MAX_SENSORS_TO_CAL][NUM_LIGHTHOUSES]; //For camfind (4+) |