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

@@ -500,11 +500,11 @@ public class OverlayPanel extends JPanel
}
/* Draw Automatic Frequency Control line */
if( channel.hasAFC() )
if( channel.hasFrequencyControl() )
{
int frequency = (int)tunerChannel.getFrequency();
long frequency = tunerChannel.getFrequency();
int error = frequency + channel.getAFC().getErrorCorrection();
long error = frequency + channel.getFrequencyCorrection();
drawAFC( graphics, getAxisFromFrequency( frequency ), false );