mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +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
@@ -227,6 +227,7 @@ export function runAircraftFeedSim({
|
||||
contacts,
|
||||
followsClock = false,
|
||||
onFrame = null,
|
||||
reportedSpeedMps = null,
|
||||
}) {
|
||||
const mod = layer === 'flights' ? flights : military;
|
||||
const truth = arrivalPath();
|
||||
@@ -336,7 +337,9 @@ export function runAircraftFeedSim({
|
||||
baroAltitudeM: p.heightM,
|
||||
ellipsoidAltitudeM: p.heightM,
|
||||
onGround: false,
|
||||
speedMps: p.speedMps,
|
||||
// A feed may report a speed that is not how fast the contact flies
|
||||
// (stale, or 0 when it gave none).
|
||||
speedMps: reportedSpeedMps ?? p.speedMps,
|
||||
courseDeg: p.trackDeg,
|
||||
verticalRateMps: -1.5,
|
||||
positionTimeMs: timeMs,
|
||||
|
||||
Reference in new issue
Block a user