mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Changed to slf4j logging framework
Enhanced error handling/logging in RTL2832 eeprom device descriptor read method for troubleshooting issue present in some R820T tuners.
This commit is contained in:
@@ -17,32 +17,23 @@
|
||||
******************************************************************************/
|
||||
package dsp.filter;
|
||||
|
||||
import gui.SDRTrunk;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import log.Log;
|
||||
|
||||
import org.jtransforms.fft.DoubleFFT_1D;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import dsp.filter.Window.WindowType;
|
||||
|
||||
public class FilterFactory
|
||||
{
|
||||
private final static Logger mLog =
|
||||
LoggerFactory.getLogger( FilterFactory.class );
|
||||
|
||||
public static void main( String[] args )
|
||||
{
|
||||
Log.info( "Testing filter factory" );
|
||||
|
||||
double[] coefficients = getCICCleanupFilter( 48000, 1, WindowType.BLACKMAN );
|
||||
|
||||
for( int x = 0; x < coefficients.length; x++ )
|
||||
{
|
||||
Log.info( x + ": " + coefficients[ x ] );
|
||||
}
|
||||
|
||||
Log.info( "Finished" );
|
||||
}
|
||||
/**
|
||||
* Generates coefficients for a unity-gain, windowed low-pass filter
|
||||
* @param sampleRate - hertz
|
||||
@@ -514,7 +505,7 @@ public class FilterFactory
|
||||
|
||||
int stage1 = findClosest( optimalStage1, factors );
|
||||
|
||||
Log.info( "Decimation rate [" + decimation +
|
||||
mLog.info( "Decimation rate [" + decimation +
|
||||
"] stage1 optimal [" + optimalStage1 +
|
||||
"] stage1 actual [" + stage1 +
|
||||
"]");
|
||||
@@ -625,7 +616,7 @@ public class FilterFactory
|
||||
|
||||
int retVal = (int)( 2.0d * decimation * ( numerator / denominator ) );
|
||||
|
||||
Log.info( "Optimal Stage 1 Decimation - rate [" + sampleRate +
|
||||
mLog.info( "Optimal Stage 1 Decimation - rate [" + sampleRate +
|
||||
"] pass [" + passFrequency +
|
||||
"] bw ratio [" + ratio +
|
||||
"] optimal [" + retVal +
|
||||
|
||||
@@ -17,11 +17,9 @@
|
||||
******************************************************************************/
|
||||
package dsp.nbfm;
|
||||
|
||||
import log.Log;
|
||||
import sample.Broadcaster;
|
||||
import sample.Listener;
|
||||
import sample.complex.ComplexSample;
|
||||
import dsp.afc.AutomaticFrequencyControl;
|
||||
import dsp.filter.ComplexFIRFilter;
|
||||
import dsp.filter.FilterFactory;
|
||||
import dsp.filter.Window.WindowType;
|
||||
|
||||
Reference in New Issue
Block a user