HackRF - final check-in. Changed all tuners to use the low-level API of the usb4java library to resolve limitation in high-level API that constrains maximum sample rate to ~2.0 MHz. Added console logging to logback.

This commit is contained in:
dennis.sheirer
2014-10-20 23:09:50 +00:00
parent 8d60397547
commit 5f4e7652bd
29 changed files with 2297 additions and 1971 deletions

View File

@@ -14,7 +14,7 @@ public class AMDemodulator implements Listener<ComplexSample>
public AMDemodulator()
{
this( FilterFactory.getLowPass( 48000, 2000, 73, WindowType.HAMMING ),
this( FilterFactory.getLowPass( 48000, 3000, 73, WindowType.HAMMING ),
1000.0 );
}
@@ -53,8 +53,8 @@ public class AMDemodulator implements Listener<ComplexSample>
public void receive( ComplexSample sample )
{
float demodulated = (float)Math.abs(
Math.sqrt( ( sample.real() * sample.real() ) +
( sample.imaginery() * sample.imaginery() ) ) );
Math.sqrt( ( sample.real() * sample.real() ) +
( sample.imaginery() * sample.imaginery() ) ) );
mBroadcaster.broadcast( demodulated * 30.0f );
}