Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkyView: Fix aircraft trail handling #48

Merged
merged 2 commits into from
Aug 16, 2019

Conversation

wiedehopf
Copy link

As seen in the screenshot below, aircraft trails in SkyView sometimes have gaps when an estimated segment ends.
This PR fixes that problem and makes the updateTrack function consistent/logical and hopefully easier to understand.
After the change only the previous position is appended following the logic of that function, the current position is drawn only with the elastic band feature.
The number of line segments in memory is significantly reduced by both commits, this improves responiveness when using the "Show All Tracks" function.

Screenshot from 2019-07-27 15-27-31

Make aircraft trail handling more consistent and the code hopefully
easier to understand.
Fix position comparison (comparing array references does not work).

When initially loading the SkyView webpage, there are sometimes gaps in
the aircraft trails when the trail transitions from estimated/dotted to
known/solid track.

Fix elastic band style to handle estimated segments properly.
When loading the history, the check for stale aircraft tracks is done
differently.
This results in lots of dotted/stale track after opening the web page.
Improve this by using the same 5 second timeout stale criterion to
postions loaded from history. Add an additional check to better detect
stale tracks when loading history positions that are spaced 30 seconds
apart.
@wiedehopf
Copy link
Author

Removed the altitude change commit because it could cause problems when the altitude was undefined.
Also didn't really fix any bug, so didn't belong.

If you don't like the force-pushes in here, please just say so and i can reopen a new PR.

@mutability mutability merged commit e2761fc into flightaware:dev Aug 16, 2019
@mutability
Copy link

I walked through the new logic and it looks good to me. Thanks for looking at this.

kpetrilli pushed a commit to kpetrilli/dump1090 that referenced this pull request Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants