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

Global airborne CPR position reconstruction from even/odd ADS-B frames. More...

Functions

int _nl (float latitude)
tuple[float, float]|None decode_global (int even_lat, int even_lon, int odd_lat, int odd_lon, *, bool most_recent_odd)
 Decode paired airborne CPR, or None for inconsistent latitude zones.

Variables

int CPR_SCALE = 131072

Detailed Description

Global airborne CPR position reconstruction from even/odd ADS-B frames.

Function Documentation

◆ _nl()

int sdrforge.adsb.cpr._nl ( float latitude)
protected
Number of longitude zones at latitude, per 1090ES CPR.

◆ decode_global()

tuple[float, float] | None sdrforge.adsb.cpr.decode_global ( int even_lat,
int even_lon,
int odd_lat,
int odd_lon,
* ,
bool most_recent_odd )

Decode paired airborne CPR, or None for inconsistent latitude zones.

The caller must ensure frames are from the same ICAO aircraft, airborne, and close enough in time (normally <=10 seconds).

Parameters
even_latThe even lat value.
even_lonThe even lon value.
odd_latThe odd lat value.
odd_lonThe odd lon value.
most_recent_oddThe most recent odd value.
Returns
The operation result.

Variable Documentation

◆ CPR_SCALE

int sdrforge.adsb.cpr.CPR_SCALE = 131072