mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
P25 - adds direct frequency control for the C4FM symbol filter to adjust the tuner channel for frequency correction.
This commit is contained in:
@@ -141,24 +141,21 @@ public class Channel extends Configuration
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the channel is using Automatic Frequency Control
|
||||
* @return
|
||||
* Indicates if the channel has Automatic or Direct Frequency Control
|
||||
*/
|
||||
public boolean hasAFC()
|
||||
public boolean hasFrequencyControl()
|
||||
{
|
||||
return getAFC() != null;
|
||||
return mProcessingChain != null && mProcessingChain.hasFrequencyControl();
|
||||
}
|
||||
|
||||
public AutomaticFrequencyControl getAFC()
|
||||
public long getFrequencyCorrection()
|
||||
{
|
||||
if( isProcessing() )
|
||||
if( mProcessingChain != null )
|
||||
{
|
||||
return getProcessingChain().getAFC();
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
return mProcessingChain.getFrequencyCorrection();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user