Tracked aircraft keep moving when reports give no speed or a stale one

A fix that moves while the reported speed is 0 or stale used to leave the
aircraft frozen, then jump it kilometres at once. The step between fixes now
measures a jump, and the drawn speed bounds the recovery.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:06:21 -08:00
1 parent 22952f8f16
commit e3cfdcf44e
7 files changed
+131 -12

No files matched your search

+3
View File
@@ -272,6 +272,9 @@ export function createFlightState({ source, services }) {
/** How the tracked icon moved over the last frame, and that frame's length (s; 0 for none). */
flightState._drPrevStep = { x: 0, y: 0, z: 0 };
flightState._drPrevStepSec = 0;
/** The raw position's last step, and that frame's length (s; 0 for none). */
flightState._drPrevRawStep = { x: 0, y: 0, z: 0 };
flightState._drPrevRawStepSec = 0;
flightState._drPrevMs = 0;