[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:
Denny
2018-02-04 04:59:27 -05:00
parent f2f2c92afe
commit 85691edacb
7 changed files with 29 additions and 261 deletions

View File

@@ -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");
}
}
}

View File

@@ -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;