mmp / vice

Virtual air traffic control simulator
https://pharr.org/vice
GNU General Public License v3.0
18 stars 25 forks source link

Fix regression in handling of track history #192

Closed mmp closed 1 month ago

mmp commented 2 months ago

The updated handling of track history in 8460812c10838 inadvertently introduced a regression, where (for example) the PTLs for aircraft in a turn would only be updated at the history rate (~5s) and not every time the radar supplied us with a new track (~1s).

With this fix now we always store the most recent and the second most recent returns from the radar regardless of the track history rate used to display track tails. These are then used to calculate the aircraft heading and such, which fixes the regression...

checkandmate1 commented 2 months ago

While testing the program, I noticed that #64 persists with a sim rate of 11x+.

mmp commented 2 months ago

Rats, yes, I see that as well with 11x+. Commit message updated to remove that.

mmp commented 2 months ago

I believe I've fixed the wobble at higher sim rates now.