mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
fix(vessels): the ship the Cockpit rides is no object in view again
In-view scanning skipped a vessel whose chevron was hidden and not drawn as its model, which covered the ship the bridge camera rides. It now skipped only vessels past the horizon, so the ridden ship was reported, at the camera's own position. It is skipped again unless its model draws it.
This commit is contained in:
1 parent
4a781f0480
commit
d2e161372c
2 files changed
+15
No files matched your search
@@ -2181,6 +2181,13 @@ test('detection objects name the vessel card their callout gives way to', () =>
|
||||
'vessel:unkeyed:NO MMSI:37.80000:-122.40000',
|
||||
'the same identity the vessel card is published under',
|
||||
);
|
||||
// The ship the bridge camera rides is no object in view.
|
||||
aisLiveVesselsLayer.setCockpitSubject('200');
|
||||
const ids = aisLiveVesselsLayer
|
||||
.getDetectableObjects()
|
||||
.map((object) => object.id);
|
||||
assert.deepEqual(ids, ['NO MMSI']);
|
||||
aisLiveVesselsLayer.setCockpitSubject(null);
|
||||
} finally {
|
||||
_setVesselStateForTest({ enabled: false });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user