|
libSDRForge
|
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) | |
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.
| sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.__init__ | ( | self, | |
| float | sample_rate, | ||
| * | , | ||
| float | threshold = 4.0 ) |
Handle init .
| self | The current instance. |
| sample_rate | The sample rate value. |
| threshold | The threshold value. |
| int sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.buffered_samples | ( | self | ) |
Handle buffered samples.
| self | The current instance. |
| tuple[bytes, ...] sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.feed | ( | self, | |
| np.ndarray | iq ) |
Handle feed.
| self | The current instance. |
| iq | The iq value. |
| None sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.reset | ( | self | ) |
Handle reset.
| self | The current instance. |
|
protected |
|
protected |
| sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.sample_rate = sample_rate |
| sdrforge.adsb.iq_stream.StreamingAdsbDemodulator.threshold = threshold |