Automatic Frequency Control enhancement. Provides default AFC and ability to disable in the Decoder tab of each channel. Spectral display includes visual indicators of frequency center (grey) and current AFC offset (yellow).

This commit is contained in:
dennis.sheirer
2014-09-11 22:46:05 +00:00
parent 4e0fd9b7b0
commit 0f43c7ed22
23 changed files with 546 additions and 119 deletions

View File

@@ -56,6 +56,7 @@ import controller.system.System;
import decode.config.AuxDecodeConfiguration;
import decode.config.DecodeConfigFactory;
import decode.config.DecodeConfiguration;
import dsp.afc.AutomaticFrequencyControl;
import eventlog.config.EventLogConfiguration;
@XmlSeeAlso( { Configuration.class } )
@@ -134,6 +135,27 @@ public class Channel extends Configuration
return mChannelType;
}
/**
* Indicates if the channel is using Automatic Frequency Control
* @return
*/
public boolean hasAFC()
{
return getAFC() != null;
}
public AutomaticFrequencyControl getAFC()
{
if( isProcessing() )
{
return getProcessingChain().getAFC();
}
else
{
return null;
}
}
/**
* Sets the resource manager responsible for this channel and registers
* the channel manager as a listener to this channel. Fires channel add