fix(transit): a held vehicle's snapshot height is its drawn marker's while the frame pass places it

Near the ground the marker follows the terrain sampled between two reports,
which a straight blend of the reports' floors misses over uneven ground.
This commit is contained in:
Sameh Khamis committed 2026-11-13 18:36:42 -08:00
1 parent 4bb7b411e9
commit 6c55daf9ac
3 files changed
+25 -5

No files matched your search

+4 -1
View File
@@ -4247,7 +4247,10 @@ test('the selected vehicle reads as a snapshot of its place, motion and source',
assert.equal(view.provenance.positionSource, 'gps');
assert.deepEqual(view.stop, { stopId: 'place-1', status: 'IN_TRANSIT_TO' });
const entry = app.vehicles()[0];
assert.equal(view.position.groundHeightM, entry.heightM - 1.5);
// Where it is drawn, without the shared lift (read back from the marker).
assert.ok(
Math.abs(view.position.groundHeightM - (entry.heightM - 1.5)) < 1e-3,
);
assert.ok(Number.isFinite(view.position.latitude));
});