Reduced frequency of squelch level update.
    Squelch level now reduces in absence of signal.
pull/2/head
David Freese 2010-01-01 18:16:58 -06:00
rodzic d494b8af28
commit 4bf78c634a
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -335,7 +335,7 @@ int cw::rx_process(const double *buf, int len)
// Compute a variable threshold value for tone
// detection. Fast attack and slow decay.
if (value > agc_peak)
agc_peak = decayavg(agc_peak, value, 10.0);
agc_peak = decayavg(agc_peak, value, 80.0);
else
agc_peak = decayavg(agc_peak, value, 800.0);
@ -356,12 +356,13 @@ int cw::rx_process(const double *buf, int len)
if (handle_event(CW_QUERY_EVENT, &c) == CW_SUCCESS) {
while (*c)
put_rx_char(*c++);
update_syncscope();
display_metric(metric);
}
update_syncscope();
// display_metric(metric);
}
}
}
clear_syncscope();
clear_syncscope();
display_metric(metric);
return 0;
}