diff options
author | Joshua Allen <axlecrusher@gmail.com> | 2017-03-18 20:23:40 -0400 |
---|---|---|
committer | Joshua Allen <axlecrusher@gmail.com> | 2017-03-18 20:23:40 -0400 |
commit | 079ef4516edee08da8a129a0d84249ccb79bbf23 (patch) | |
tree | 9e7b109a98957526ceca63b0ddd07fc96f8697a6 /src/survive_cal.c | |
parent | 4e3ac12016cc489c818709412acd293cac54cb78 (diff) | |
parent | 0f94e39d96fbc2744e61b85d2884250d0783eb11 (diff) | |
download | libsurvive-079ef4516edee08da8a129a0d84249ccb79bbf23.tar.gz libsurvive-079ef4516edee08da8a129a0d84249ccb79bbf23.tar.bz2 |
Merge branch 'master' of github.com:cnlohr/libsurvive
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-x | src/survive_cal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c index 0eb9446..9dc3af2 100755 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -272,6 +272,7 @@ void survive_cal_angle( struct SurviveObject * so, int sensor_id, int acode, uin if( sensors_visible < MIN_SENSORS_VISIBLE_PER_LH_FOR_CAL ) { //printf( "Dev %d, LH %d not enough visible points found.\n", i, j ); + reset_calibration( cd ); cd->found_common = 0; return; } @@ -440,7 +441,7 @@ static void handle_calibration( struct SurviveCalData *cd ) FLT stddevlen = 0; #define HISTOGRAMSIZE 31 - #define HISTOGRAMBINANG 0.00001 //TODO: Tune + #define HISTOGRAMBINANG ((3.14159)/400000.0) //TODO: Tune int histo[HISTOGRAMSIZE]; memset( histo, 0, sizeof( histo ) ); |