Skip to content

Commit

Permalink
Rebase dft_detect, bump beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jessop authored and Mark Jessop committed Jun 6, 2024
1 parent 1b7b639 commit 967741d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auto_rx/autorx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.

__version__ = "1.7.3-beta15"
__version__ = "1.7.3-beta16"


# Global Variables
Expand Down
10 changes: 9 additions & 1 deletion scan/dft_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,9 +1018,12 @@ static int init_buffers() {
float f_lp; // dec_lowpass: lowpass_bw/2
float t_bw; // dec_lowpass: transition_bw
int taps; // dec_lowpass: taps
int wideIF = 0;

if (set_lpIQ > IF_sr) IF_sr = set_lpIQ;

wideIF = IF_sr > 60e3;

sr_base = sample_rate;

if (option_min) IF_sr = IF_SAMPLE_RATE_MIN;
Expand All @@ -1030,8 +1033,13 @@ static int init_buffers() {
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*/;
if (wideIF) { // IF=96k
f_lp = (IF_sr+60e3)/(4.0*sr_base);
t_bw = (IF_sr-60e3)/*/2.0*/;
}
else
if (option_min) {
t_bw = (IF_sr-12e3);
}
Expand Down

0 comments on commit 967741d

Please sign in to comment.