Function adsb_deku::cpr::get_position[][src]

pub fn get_position(cpr_frames: (&Altitude, &Altitude)) -> Option<Position>
Expand description

Calculates a globally unambiguous position based on a pair of frames containing position information encoded in CPR format. A position is returned when passed a tuple containing two frames of opposite parity (even and odd). The frames in the tuple should be ordered according to when they were received: the first frame being the oldest frame and the second frame being the latest.