rtl_sdr_fm: use fast atan2 discriminator for analog mode to reduce quantization noise

This commit is contained in:
arancormonk
2025-09-03 21:33:04 -04:00
parent 86d91512bb
commit 9e9ae95219

View File

@@ -1693,10 +1693,10 @@ void demod_init_analog(struct demod_state *s)
s->terminate_on_squelch = 0;
s->squelch_hits = 11;
s->downsample_passes = 1; //
s->comp_fir_size = 0;
s->comp_fir_size = 9;
s->prev_index = 0;
s->post_downsample = 1; //1 -- once this works, default = 4 -- doesn't work on the official rtl-sdr source code either
s->custom_atan = 2;
s->custom_atan = 1;
s->deemph = 1; //
s->rate_out2 = rtl_bandwidth; // -1 flag for disabled -- this enables low_pass_real, seems to work okay
s->mode_demod = &fm_demod;