P25 - adds direct frequency control for the C4FM symbol filter to adjust the tuner channel for frequency correction.

This commit is contained in:
dennis.sheirer
2015-01-19 16:20:37 +00:00
parent cc5edd4790
commit 1c0da75c01
7 changed files with 146 additions and 41 deletions

View File

@@ -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;
}
/**