Skip to content

Commit ba67264

Browse files
committed
Add agc_fast_attack and agc_slow_decay into B/D afsk demod init
1 parent 17d3d0a commit ba67264

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/demod_afsk.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,6 @@ void demod_afsk_init (int samples_per_sec, int baud, int mark_freq,
309309
D->lp_window = BP_WINDOW_TRUNCATED;
310310
}
311311

312-
D->agc_fast_attack = 0.820;
313-
D->agc_slow_decay = 0.000214;
314-
D->agc_fast_attack = 0.45;
315-
D->agc_slow_decay = 0.000195;
316312
D->agc_fast_attack = 0.70;
317313
D->agc_slow_decay = 0.000090;
318314

@@ -372,6 +368,9 @@ void demod_afsk_init (int samples_per_sec, int baud, int mark_freq,
372368
// For scaling phase shift into normallized -1 to +1 range for mark and space.
373369
D->u.afsk.normalize_rpsam = 1.0 / (0.5 * abs(mark_freq - space_freq) * 2 * M_PI / samples_per_sec);
374370

371+
D->agc_fast_attack = 0.70;
372+
D->agc_slow_decay = 0.000090;
373+
375374
D->pll_locked_inertia = 0.74;
376375
D->pll_searching_inertia = 0.50;
377376

0 commit comments

Comments
 (0)