libSDRForge
Loading...
Searching...
No Matches
sdrforge.adsb.iq_demodulator Namespace Reference

Hardware-independent 1090 MHz Mode S preamble and PPM demodulation. More...

Functions

np.ndarray _energy (np.ndarray power, float sample_rate, float start_us, float width_us)
tuple[bytes,...] demodulate_frames (np.ndarray iq, float sample_rate, *, float threshold=4.0)
 Extract 112-bit DF17 frames from a complete IQ buffer.

Variables

tuple _PULSES = (0.0, 1.0, 3.5, 4.5)
tuple _GAPS = (2.0, 2.5, 5.5, 6.5)

Detailed Description

Hardware-independent 1090 MHz Mode S preamble and PPM demodulation.

Input is complex baseband IQ. This first implementation targets complete buffers; streaming overlap and RTL-SDR acquisition are separate milestones.

Function Documentation

◆ _energy()

np.ndarray sdrforge.adsb.iq_demodulator._energy ( np.ndarray power,
float sample_rate,
float start_us,
float width_us )
protected
Window mean sampled at arbitrary fractional microsecond offsets.

◆ demodulate_frames()

tuple[bytes, ...] sdrforge.adsb.iq_demodulator.demodulate_frames ( np.ndarray iq,
float sample_rate,
* ,
float threshold = 4.0 )

Extract 112-bit DF17 frames from a complete IQ buffer.

Candidate preambles are gated by pulse/gap contrast. Final acceptance is delegated to CRC validation in the frame receiver session.

Parameters
iqThe iq value.
sample_rateThe sample rate value.
thresholdThe threshold value.
Returns
The operation result.

Variable Documentation

◆ _GAPS

tuple sdrforge.adsb.iq_demodulator._GAPS = (2.0, 2.5, 5.5, 6.5)
protected

◆ _PULSES

tuple sdrforge.adsb.iq_demodulator._PULSES = (0.0, 1.0, 3.5, 4.5)
protected