kopia lustrzana https://github.com/rs1729/RS
clean-up
rodzic
99922ba515
commit
f6d1705d13
|
@ -168,8 +168,6 @@ static float *ws_lpIQ[2];
|
|||
static int dsp__lpIQtaps; // ui32_t
|
||||
static float complex *lpIQ_buf;
|
||||
|
||||
static float complex *iq_buf;
|
||||
|
||||
|
||||
static void dft_raw(float complex *Z) {
|
||||
int s, l, l2, i, j, k;
|
||||
|
@ -981,8 +979,6 @@ static int free_buffers() {
|
|||
}
|
||||
if (Y) { free(Y); Y = NULL; }
|
||||
|
||||
if (iq_buf) { free(iq_buf); iq_buf = NULL; }
|
||||
|
||||
for (j = 0; j < 1; j++) {
|
||||
if (ws_lpIQ[j]) { free(ws_lpIQ[j]); ws_lpIQ[j] = NULL; }
|
||||
}
|
||||
|
|
|
@ -610,7 +610,12 @@ int main(int argc, char **argv) {
|
|||
if ( mag < 0 ) mag = 0;
|
||||
if (1 || option_verbose) fprintf(fpout, " ; %d", mag);
|
||||
|
||||
if (mag0 > 0 && mag == 0) fprintf(OUT, "peak: %+9.6f = %+9.1fHz\n", bin2fq(&DFT, max_db_idx), bin2freq(&DFT, max_db_idx));
|
||||
if (mag0 > 0 && mag == 0) {
|
||||
if ( fabs(bin2fq(&DFT, max_db_idx)) < 0.425 ) // 85% bandwidth
|
||||
{
|
||||
fprintf(OUT, "peak: %+9.6f = %+9.1fHz\n", bin2fq(&DFT, max_db_idx), bin2freq(&DFT, max_db_idx));
|
||||
}
|
||||
}
|
||||
if (mag0 == 0 && mag > 0) {
|
||||
max_db_loc = sympeak;
|
||||
max_db_idx = j % DFT.N;
|
||||
|
|
Ładowanie…
Reference in New Issue