Rebase dft_detect, bump beta version

pull/887/head
Mark Jessop 2024-06-06 18:04:15 +09:30
rodzic 1b7b6399d3
commit 967741deeb
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ from queue import Queue
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus. # MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
# PATCH - Small changes, or minor feature additions. # PATCH - Small changes, or minor feature additions.
__version__ = "1.7.3-beta15" __version__ = "1.7.3-beta16"
# Global Variables # Global Variables

Wyświetl plik

@ -1018,9 +1018,12 @@ static int init_buffers() {
float f_lp; // dec_lowpass: lowpass_bw/2 float f_lp; // dec_lowpass: lowpass_bw/2
float t_bw; // dec_lowpass: transition_bw float t_bw; // dec_lowpass: transition_bw
int taps; // dec_lowpass: taps int taps; // dec_lowpass: taps
int wideIF = 0;
if (set_lpIQ > IF_sr) IF_sr = set_lpIQ; if (set_lpIQ > IF_sr) IF_sr = set_lpIQ;
wideIF = IF_sr > 60e3;
sr_base = sample_rate; sr_base = sample_rate;
if (option_min) IF_sr = IF_SAMPLE_RATE_MIN; if (option_min) IF_sr = IF_SAMPLE_RATE_MIN;
@ -1030,8 +1033,13 @@ static int init_buffers() {
decM = sr_base / IF_sr; decM = sr_base / IF_sr;
} }
f_lp = (IF_sr+20e3)/(4.0*sr_base); f_lp = (IF_sr+20e3)/(4.0*sr_base); // IF=48k
t_bw = (IF_sr-20e3)/*/2.0*/; t_bw = (IF_sr-20e3)/*/2.0*/;
if (wideIF) { // IF=96k
f_lp = (IF_sr+60e3)/(4.0*sr_base);
t_bw = (IF_sr-60e3)/*/2.0*/;
}
else
if (option_min) { if (option_min) {
t_bw = (IF_sr-12e3); t_bw = (IF_sr-12e3);
} }