[][src]Function adsb::cpr::get_position

pub fn get_position(cpr_frames: (&CPRFrame, &CPRFrame)) -> Option<Position>

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.