mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves issue with AFC and frequency change event handling,
specifically for P25 C4FM frequency tracking. -Clarifies frequency change event naming and adds request/notitification events for channel frequency correction type events -Removes DC offset filter from P25 C4FM demodulator which was operating independently of the AFC tracking component within the C4FM symbol filter. -Changed FCD tuner center DC spike buffer size after detecting that the DC center spike was influencing the P25 C4FM filter frequency tracker whenever the tuner's center frequency was changed to bring the channel boundary within 3 kHz of the center spike -- set it to 5 kHz to provide a better buffer. -Updated spectral channel display to provide better indication of automatic frequency control (yellow line) versus channel frequency
This commit is contained in:
@@ -2,27 +2,27 @@ package source.tuner.frequency;
|
||||
|
||||
public class FrequencyChangeEvent
|
||||
{
|
||||
public enum Attribute
|
||||
public enum Event
|
||||
{
|
||||
SAMPLE_RATE_ERROR,
|
||||
BANDWIDTH,
|
||||
FREQUENCY,
|
||||
FREQUENCY_ERROR,
|
||||
SAMPLE_RATE;
|
||||
FREQUENCY_CHANGE_NOTIFICATION,
|
||||
FREQUENCY_CORRECTION_CHANGE_NOTIFICATION,
|
||||
CHANNEL_FREQUENCY_CORRECTION_CHANGE_NOTIFICATION,
|
||||
CHANNEL_FREQUENCY_CORRECTION_CHANGE_REQUEST,
|
||||
SAMPLE_RATE_CHANGE_NOTIFICATION;
|
||||
}
|
||||
|
||||
private Attribute mAttribute;
|
||||
private Event mEvent;
|
||||
private Number mValue;
|
||||
|
||||
public FrequencyChangeEvent( Attribute attribute, Number value )
|
||||
public FrequencyChangeEvent( Event event, Number value )
|
||||
{
|
||||
mAttribute = attribute;
|
||||
mEvent = event;
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public Attribute getAttribute()
|
||||
public Event getEvent()
|
||||
{
|
||||
return mAttribute;
|
||||
return mEvent;
|
||||
}
|
||||
|
||||
public Number getValue()
|
||||
|
||||
Reference in New Issue
Block a user