mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
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:
1 parent
22952f8f16
commit
e3cfdcf44e
7 files changed
+131
-12
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user