fix(cockpit): radar contacts stay where the vessel layer draws them

The vessel layer draws other ships at their last AIS fix and does not
advance them, so dead-reckoning radar contacts moved the mismatch from own
ship to everyone else: a 15 kn ferry reported 90 s ago showed ~700 m ahead
of the ship out of the window. Own ship stays centred where the camera
rides; contacts go back to their last fixes, and the query drops the extra
reach and candidates (which could also cut the nearest ship in a crowd).
This commit is contained in:
Sameh Khamis committed 2026-11-08 14:09:17 -08:00
1 parent 0ba7ba6512
commit f96a89a9ef
7 files changed
+27 -114

No files matched your search

@@ -92,11 +92,6 @@ test('radar contacts are within range, nearest first and capped', () => {
type: '70',
color: vesselTypeCss('70'),
stale: false,
motionCourse: 45,
velocityMps: 10 * 0.514444,
fixEpochMs: null,
receivedAtMs: null,
feedEpochMs: null,
});
assert.equal(contacts[1].course, null);
assert.equal(contacts[1].heading, null);