libSDRForge
Loading...
Searching...
No Matches
sdrforge.adsb.iq_stream.StreamingAdsbDemodulator Class Reference

Emit each complete DF17 frame once across arbitrary IQ chunk boundaries. More...

Public Member Functions

 __init__ (self, float sample_rate, *, float threshold=4.0)
 Handle init .
int buffered_samples (self)
 Handle buffered samples.
None reset (self)
 Handle reset.
tuple[bytes,...] feed (self, np.ndarray iq)
 Handle feed.

Public Attributes

 sample_rate = sample_rate
 threshold = threshold

Protected Attributes

 _frame_samples = int(np.ceil(120 * sample_rate / 1e6))
 _pending = np.empty(0, dtype=np.complex64)

Detailed Description

Emit each complete DF17 frame once across arbitrary IQ chunk boundaries.

Retain the last 120 microseconds of samples. Since the block demodulator only examines complete frames, any frame spanning a chunk boundary will first become eligible on a later feed.

Constructor & Destructor Documentation

◆ __init__()

sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.__init__ ( self,
float sample_rate,
* ,
float threshold = 4.0 )

Handle init .

Parameters
selfThe current instance.
sample_rateThe sample rate value.
thresholdThe threshold value.

Member Function Documentation

◆ buffered_samples()

int sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.buffered_samples ( self)

Handle buffered samples.

Parameters
selfThe current instance.
Returns
The operation result.

◆ feed()

tuple[bytes, ...] sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.feed ( self,
np.ndarray iq )

Handle feed.

Parameters
selfThe current instance.
iqThe iq value.
Returns
The operation result.

◆ reset()

None sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.reset ( self)

Handle reset.

Parameters
selfThe current instance.

Member Data Documentation

◆ _frame_samples

sdrforge.adsb.iq_stream.StreamingAdsbDemodulator._frame_samples = int(np.ceil(120 * sample_rate / 1e6))
protected

◆ _pending

sdrforge.adsb.iq_stream.StreamingAdsbDemodulator._pending = np.empty(0, dtype=np.complex64)
protected

◆ sample_rate

sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.sample_rate = sample_rate

◆ threshold

sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.threshold = threshold

The documentation for this class was generated from the following file: