Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add agc_fast_attack and agc_slow_decay into B/D afsk demod init
  • Loading branch information
bjpetit committed Jan 7, 2023
commit ba672648299c055a1c170218504c3ed16b10e88a
7 changes: 3 additions & 4 deletions src/demod_afsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ void demod_afsk_init (int samples_per_sec, int baud, int mark_freq,
D->lp_window = BP_WINDOW_TRUNCATED;
}

D->agc_fast_attack = 0.820;
D->agc_slow_decay = 0.000214;
D->agc_fast_attack = 0.45;
D->agc_slow_decay = 0.000195;
D->agc_fast_attack = 0.70;
D->agc_slow_decay = 0.000090;

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

D->agc_fast_attack = 0.70;
D->agc_slow_decay = 0.000090;

D->pll_locked_inertia = 0.74;
D->pll_searching_inertia = 0.50;

Expand Down