Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
/ readsb Public archive

Some improvements for position updating / CPR handling #19

Merged
merged 2 commits into from
Oct 19, 2019
Merged

Some improvements for position updating / CPR handling #19

merged 2 commits into from
Oct 19, 2019

Commits on Oct 18, 2019

  1. Fix update_position being called when neither CPR changed

    When we have ADS-B CPRs and get a MLAT synthetic CPR, don't call
    updatePosition as this messes up the position state.
    wiedehopf committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    3388c27 View commit details
    Browse the repository at this point in the history
  2. Don't throw away both CPRs, most likely only one is bad.

    If we receive a new CPR and the old CPR is the one with bad data, we
    will throw the data away again.  But if we are lucky and receive the
    CPR that was bad, we get a good position again faster.  Also this
    makes the speed check impossible on the next decode, which is bad.
    Instead move the position validity closer to expiration.
    That should help with wrongly accepting a bad position and failing
    all speed checks afterwards.
    wiedehopf committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    1aa5315 View commit details
    Browse the repository at this point in the history