Read the camera through its port when applying military snapshots

The military snapshot renderer took the camera's ground point from the
Cesium camera, built fix positions and history entries with Cesium types,
re-floored stale grounded contacts with Cesium positions and handed the
scene to the mesh floor sampler itself. It now reads the ground point from
the camera port's pose, compares fix times in whole milliseconds as before,
and leaves positions, the stale re-floor and the mesh floor probe to the
military motion part. The file no longer touches Cesium and leaves the
allow-list.

The fix position, copy and history entry helpers the flights and military
motion parts both need now live once in the aircraft motion regime module.
This commit is contained in:
Sameh Khamis committed 2026-11-07 04:49:47 -08:00
1 parent 2e0a206c6c
commit b1333d8d93
8 files changed
+312 -94

No files matched your search

+6 -24
View File
@@ -37,6 +37,9 @@ import {
aircraftMotionRegime,
createMotionRegime,
fixEpochMs,
fixPosition,
copyPosition,
historyFix,
julianAt,
fixSpeedMps,
fixTrackDeg,
@@ -1064,35 +1067,14 @@ export function createMotion({
/** The display instant `epochMs` as a JulianDate, for `_motionRegime`. */
const _displayTimeAt = (epochMs, result) => julianAt(epochMs, result);
/** A feed fix's ECEF position, from its degrees and render altitude. */
const _fixPosition = (lonDeg, latDeg, heightM) =>
Cesium.Cartesian3.fromDegrees(lonDeg, latDeg, heightM);
/** A copy of a fix position, for a trail that keeps it. */
const _copyPosition = (position) => Cesium.Cartesian3.clone(position);
/**
* A position-history entry for a feed fix at `epochMs`, carrying the fix's
* own velocity and track; it keeps a copy of `position`.
*/
function _historyFix(epochMs, position, velocity, track) {
return {
time: julianAt(epochMs),
epochMs,
position: Cesium.Cartesian3.clone(position),
velocity,
track,
};
}
return {
_refloorStaleGroundedContacts,
_deadReckon,
_displayTimeAt,
_fixEpochMs: fixEpochMs,
_fixPosition,
_copyPosition,
_historyFix,
_fixPosition: fixPosition,
_copyPosition: copyPosition,
_historyFix: historyFix,
_motionRegime,
_extrapolateFix,
_isTrackWarmingUp,