mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 17:17:29 -05:00
Tuner Controller update to better handle automatic center frequency
calculation when additional channels are allocated. Incorporates tuner specific definition of overall usable bandwidth, so that tuners like airspy can specify 90% of 10 MHz (ie 9 MHz) is truly usable and the fringe 10% is unusable rolloff. Also includes tuner-specific defining of the width of the central spike, or a value of 0 indicates that the entire range is usable (ie airspy).
This commit is contained in:
@@ -44,6 +44,8 @@ public class E4KTunerController extends RTL2832TunerController
|
||||
|
||||
public static final long MIN_FREQUENCY = 52000000;
|
||||
public static final long MAX_FREQUENCY = 2200000000l;
|
||||
public static final double USABLE_BANDWIDTH_PERCENT = 0.95;
|
||||
public static final int DC_SPIKE_AVOID_BUFFER = 15000;
|
||||
|
||||
/* The local oscillator is defined by whole (integer) units of the oscillator
|
||||
* frequency and fractional units representing 1/65536th of the oscillator
|
||||
@@ -115,8 +117,8 @@ public class E4KTunerController extends RTL2832TunerController
|
||||
ThreadPoolManager threadPoolManager )
|
||||
throws SourceException
|
||||
{
|
||||
super( device, deviceDescriptor, threadPoolManager,
|
||||
MIN_FREQUENCY, MAX_FREQUENCY );
|
||||
super( device, deviceDescriptor, threadPoolManager, MIN_FREQUENCY,
|
||||
MAX_FREQUENCY, DC_SPIKE_AVOID_BUFFER, USABLE_BANDWIDTH_PERCENT );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user