Frequency limit for Automatic Frequency Control to prevent the controller from walking too far.

Defaults to a maximum of 3kHz, but can be set to as high as 15 kHz.
This commit is contained in:
dennis.sheirer
2014-10-26 22:36:06 +00:00
parent 08f321fda4
commit d1ab661754
5 changed files with 71 additions and 9 deletions

View File

@@ -376,7 +376,11 @@ public class ProcessingChain implements Listener<Message>
{
TunerChannelSource tcs = (TunerChannelSource)mSource;
mAFC = new AutomaticFrequencyControl( tcs );
int maximumCorrection = mChannel
.getDecodeConfiguration().getAFCMaximumCorrection();
mAFC = new AutomaticFrequencyControl( tcs,
maximumCorrection );
/* Register AFC to receive frequency change events */
tcs.addListener( mAFC );