mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Space Missions no longer runs as a Context mode. The launches layer owns its Satellites dependency, including the rule that a Satellites off asked for after Space Missions was switched on ends it (request order decides), and a small controller connects the layer to its own panel and store. Context no longer isolates, snapshots or restores Space Missions or Satellites, so Contacts and Space Missions run together in either order, and scene playback no longer exits an isolating mode. Settled by the owner: Contacts leaves Satellites as it is, and only a person's or voice Satellites off ends Space Missions; a scene, story, preset or other programmatic off does not. Turning the layer on by hand or by voice, choosing it at first run, or picking a mission on the globe opens the Space Missions panel, and on a phone its Missions sheet. Asking voice to open the panel while the layer is off is refused with a reason, and voice never opens it while the Cockpit owns the screen. With no Context mode on, a voice Context off switches Space Missions off. A failed Satellites restore no longer cuts the layer's teardown short. Mission labels on the globe select their mission. The layer names a failed first index load itself, so the Context toast no longer imports Space Missions code. Also carries the satellites request ordering and DataLayerManager.waitForLayerIdle, the share token for the panel, voice panel ids, Cockpit folding the panel away and the phone tab ellipsis. The panel shares the rail gutters and hover border of the other side panels. On top of the Omnibar: "open space missions panel" reaches the new panel, and Open Context no longer answers to "missions". Co-authored-by: Sameh Khamis <[email protected]>
106 lines
2.6 KiB
JavaScript
106 lines
2.6 KiB
JavaScript
import { TWO_PI, toRadians } from '../../geo/vector.js';
|
|
|
|
export const WINDOW_DAYS = 30;
|
|
|
|
/** Longest Space Missions waits for pending Satellites work to settle. */
|
|
export const SATELLITE_SETTLE_TIMEOUT_MS = 30000;
|
|
|
|
export const ROCKET_MISSION_AMBIENT_OVERLAY_SOURCE_ID = 'rocket-missions';
|
|
|
|
export const ROCKET_MISSION_SELECTED_OVERLAY_SOURCE_ID =
|
|
'rocket-mission-selected';
|
|
|
|
export const ROCKET_MISSION_AMBIENT_OVERLAY_COHORT_LIMIT = 48;
|
|
|
|
export const ROCKET_MISSION_AMBIENT_OVERLAY_COLLISION_CAPACITY = 24;
|
|
|
|
export const ROCKET_MISSION_SELECTED_OVERLAY_SOURCE_OPTIONS = Object.freeze({
|
|
cohortLimit: 12,
|
|
collisionCapacity: 0,
|
|
moving: true,
|
|
solveIntervalMs: 0,
|
|
});
|
|
|
|
export const ROCKET_MISSION_AMBIENT_OVERLAY_SOURCE_OPTIONS = Object.freeze({
|
|
cohortLimit: ROCKET_MISSION_AMBIENT_OVERLAY_COHORT_LIMIT,
|
|
collisionCapacity: ROCKET_MISSION_AMBIENT_OVERLAY_COLLISION_CAPACITY,
|
|
moving: false,
|
|
});
|
|
|
|
export const REPLAY_ASCENT_FALLBACK_SEC = 12;
|
|
|
|
export const REPLAY_ASCENT_MIN_SEC = 8;
|
|
|
|
export const REPLAY_ASCENT_MAX_SEC = 36;
|
|
|
|
export const REPLAY_ORBIT_DURATION_SEC = 28;
|
|
|
|
export const REPLAY_COUNTDOWN_DURATION_SEC = 10;
|
|
|
|
export const REPLAY_TILE_SETTLE_DELAY_SEC = 5;
|
|
|
|
export const REPLAY_INITIAL_RANGE_M = 3500;
|
|
|
|
export const REPLAY_LOCAL_MAX_RANGE_M = 900000;
|
|
|
|
export const REPLAY_CONTEXT_MAX_RANGE_M = 2400000;
|
|
|
|
export const REPLAY_CONTEXT_ALTITUDE_END_M = 420000;
|
|
|
|
export const REPLAY_ORBIT_GLOBE_RANGE_M = 18000000;
|
|
|
|
export const REPLAY_ORBIT_PULLBACK_FRACTION = 0.2;
|
|
|
|
export const REPLAY_ASCENT_CAMERA_OFFSET_RAD = toRadians(30);
|
|
|
|
export const REPLAY_ORBIT_CAMERA_OFFSET_RAD = toRadians(45);
|
|
|
|
export const REPLAY_ORBIT_FRAME_CENTER_BLEND = 0.45;
|
|
|
|
export const REPLAY_SPEED_MIN = 0.25;
|
|
|
|
export const REPLAY_SPEED_MAX = 4;
|
|
|
|
export const REPLAY_SPEED_STEP = 0.25;
|
|
|
|
export const MAX_POST_TLE_RETRIES = 1;
|
|
|
|
export const POST_TLE_RETRY_DELAY_MS = 1500;
|
|
|
|
export const EARTH_ROTATION_RAD_PER_SEC = TWO_PI / 86164.0905;
|
|
|
|
export const PROJECTED_ASCENT_ROTATION_SEC = 600;
|
|
|
|
export const STAGE_REENTRY_ALTITUDE_M = 100000;
|
|
|
|
export const MISSION_CLOSE_VIEW_RANGE_M = 180000;
|
|
|
|
export const MISSION_GLOBE_VIEW_RANGE_M = 5000000;
|
|
|
|
export const MISSION_FOCUS_RANGE_M = 12000;
|
|
|
|
export const SATELLITE_STANDALONE_DEFAULTS = {
|
|
catalog: 'core',
|
|
showPoints: true,
|
|
showOrbits: true,
|
|
};
|
|
|
|
export const MISSION_ORBIT_PATTERN_GROUPS = 4;
|
|
|
|
export const MISSION_ORBIT_DASHES_PER_GROUP = 100;
|
|
|
|
export const LAUNCH_PAD_ZONE_RADIUS_M = 500;
|
|
|
|
export const LAUNCH_PAD_ZONE_MAX_CAMERA_HEIGHT_M = 120000;
|
|
|
|
export const LAUNCH_PAD_ZONE_MAX_CAMERA_DISTANCE_M = 180000;
|
|
|
|
export const TRAJECTORY_STAGE_COLORS = [
|
|
'#ff9f43',
|
|
'#ff66c4',
|
|
'#a78bfa',
|
|
'#7bed9f',
|
|
'#ffd166',
|
|
'#60a5fa',
|
|
];
|