mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user