mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
P25 - updated automatic and direct frequency control to cleanup the code and allow P25 to better track frequency and PPM changes in the tuner and provide a cleaner implementation of the AFC component in the processing chain of all of the other decoders.
Changed C4FM symbol filter to reset frequency tracking values when the tuner's frequency or PPM values change. Moved all frequency control pieces into the source.tuner.frequency package.
This commit is contained in:
32
src/source/tuner/frequency/FrequencyChangeEvent.java
Normal file
32
src/source/tuner/frequency/FrequencyChangeEvent.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package source.tuner.frequency;
|
||||
|
||||
public class FrequencyChangeEvent
|
||||
{
|
||||
public enum Attribute
|
||||
{
|
||||
SAMPLE_RATE_ERROR,
|
||||
BANDWIDTH,
|
||||
FREQUENCY,
|
||||
FREQUENCY_ERROR,
|
||||
SAMPLE_RATE;
|
||||
}
|
||||
|
||||
private Attribute mAttribute;
|
||||
private Number mValue;
|
||||
|
||||
public FrequencyChangeEvent( Attribute attribute, Number value )
|
||||
{
|
||||
mAttribute = attribute;
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public Attribute getAttribute()
|
||||
{
|
||||
return mAttribute;
|
||||
}
|
||||
|
||||
public Number getValue()
|
||||
{
|
||||
return mValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user