basically moving docking flows to the server instead of being in the web UI

This commit is contained in:
legop3
2026-10-01 21:21:39 -04:00
parent 1ba4ebe5ff
commit ddfc889a8c
30 changed files with 482 additions and 453 deletions
+8
View File
@@ -11,6 +11,10 @@ const EMPTY_BATTERY_TELEMETRY = Object.freeze({
});
const EMPTY_DOCK_TELEMETRY = Object.freeze({
dockingPhase: 'idle',
movementLocked: true,
cameraLocked: false,
dockingError: '',
oiModeLabel: 'Unknown',
chargingStateLabel: '',
homeBase: false,
@@ -127,6 +131,10 @@ export function selectDockTelemetry(frame) {
const sensors = frame?.sensors;
if (!sensors) return EMPTY_DOCK_TELEMETRY;
return {
dockingPhase: sensors.docking?.phase || 'idle',
movementLocked: sensors.docking?.movementLocked ?? true,
cameraLocked: Boolean(sensors.docking?.cameraLocked),
dockingError: sensors.docking?.error?.message || '',
oiModeLabel: sensors.oiMode?.label || 'Unknown',
chargingStateLabel: sensors.chargingState?.label || '',
// OI packet 34 is the authoritative charging-sources packet. Charging