mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
[WIP] Testing completed for channel manager allocating tuner channels
when the tuner controller indicates that there is a center DC spike blocked region or when the tuner has clipped outer spectral regions resulting in less than 100% usable bandwidth.
This commit is contained in:
@@ -412,8 +412,8 @@ public class TunerChannelSourceManager extends ChannelSourceManager
|
||||
catch(IllegalArgumentException iae)
|
||||
{
|
||||
//Center frequency calculation failed
|
||||
mLog.error("Couldn't calculate new tuner center frequency for new tuner channel [" +
|
||||
tunerChannel + "] unable to allocate new tuner channel", iae);
|
||||
mLog.debug("Couldn't calculate new tuner center frequency for new tuner channel [" +
|
||||
tunerChannel + "] unable to allocate new tuner channel");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ public class TestTunerController extends TunerController
|
||||
|
||||
public static final long MINIMUM_FREQUENCY = 1l;
|
||||
public static final long MAXIMUM_FREQUENCY = 1000000000l;
|
||||
public static final int SAMPLE_RATE = 800000;
|
||||
public static final int DC_NOISE_BANDWIDTH = 0;
|
||||
public static final double USABLE_BANDWIDTH_PERCENTAGE = 1.00;
|
||||
public static final int SAMPLE_RATE = 100000;
|
||||
public static final int DC_NOISE_BANDWIDTH = 5000;
|
||||
public static final double USABLE_BANDWIDTH_PERCENTAGE = .90;
|
||||
|
||||
public static final int SPECTRAL_FRAME_RATE = 20;
|
||||
public static final long SAMPLE_GENERATION_INTERVAL = 1000 / SPECTRAL_FRAME_RATE;
|
||||
|
||||
Reference in New Issue
Block a user