mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user