comparison FXAnalyse.c @ 55:54add101fdca

Cleanup. Remove unnecessary global variable
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 11 Oct 2012 11:59:32 +0200
parents 73e23c879d6e
children 6e73fb3d94fa
comparison
equal deleted inserted replaced
54:73e23c879d6e 55:54add101fdca
110 110
111 double Slope_Math2slope=0.0,Math2_slope=0.0,Moy_Math2slope=0.0; 111 double Slope_Math2slope=0.0,Math2_slope=0.0,Moy_Math2slope=0.0;
112 int N_Math2slope=0.0,nstabilisationSlopeMeasuring=0; 112 int N_Math2slope=0.0,nstabilisationSlopeMeasuring=0;
113 113
114 double LimitToDelock=5.0; 114 double LimitToDelock=5.0;
115 double SlopeCorrection=0.0;
116 double limitotakoff=70.0; 115 double limitotakoff=70.0;
117 116
118 int ratio=10; //Recentre la frequence tous les ratios 117 int ratio=10; //Recentre la frequence tous les ratios
119 118
120 int FrequCorrec = FALSE, KeepFrequ = TRUE, KeepSlope = TRUE; 119 int FrequCorrec = FALSE, KeepFrequ = TRUE, KeepSlope = TRUE;
1244 CenterFrequencyCh2ToDetermine = FALSE; 1243 CenterFrequencyCh2ToDetermine = FALSE;
1245 } 1244 }
1246 1245
1247 if (Nratio == ratio) { 1246 if (Nratio == ratio) {
1248 if (FrequCorrec == TRUE) { 1247 if (FrequCorrec == TRUE) {
1249 SlopeCorrection = (MoyMath2/ratio-CenterFrequencyCh2)/TimetoSlope; 1248 double correction = (MoyMath2/ratio-CenterFrequencyCh2)/TimetoSlope;
1250 SlopeMath2 = SlopeMath2 + SlopeCorrection; 1249 SlopeMath2 = SlopeMath2 + correction;
1251 } 1250 }
1252 Nratio = 0; 1251 Nratio = 0;
1253 MoyMath2 = 0.0; 1252 MoyMath2 = 0.0;
1254 } 1253 }
1255 1254