diff --git a/webui/src/components/DockAssistHUD.jsx b/webui/src/components/DockAssistHUD.jsx deleted file mode 100644 index 355d4b17..00000000 --- a/webui/src/components/DockAssistHUD.jsx +++ /dev/null @@ -1,114 +0,0 @@ -import { useMemo } from 'react'; -import { useDockIr } from '../hooks/useDockIr.js'; - -const SVG_W = 120; -const SVG_H = 96; -const CX = SVG_W / 2; -const DOCK_Y = 14; -const ROVER_Y = 74; - -function alignmentBarPath() { - return `M ${CX - 3} ${DOCK_Y + 4} L ${CX - 10} ${ROVER_Y - 6} L ${CX + 10} ${ROVER_Y - 6} Z`; -} - -export default function DockAssistHUD({ sensors }) { - const state = useDockIr(sensors); - const palette = useMemo( - () => ({ - green: ['rgba(16,185,129,0.6)', 'rgba(16,185,129,0.45)', 'rgba(16,185,129,0)'], - red: ['rgba(239,68,68,0.6)', 'rgba(239,68,68,0.45)', 'rgba(239,68,68,0)'], - forceOutline: 'rgba(191,219,254,0.85)', - roverBody: '#0f172a', - roverFill: '#e5e7eb', - }), - [], - ); - - if (!state.visible) return null; - - const nudge = state.balance * 5; - const leftHit = state.left.active; - const rightHit = state.right.active; - const forceHit = state.omni.force || state.forceDetected; - const allAligned = Boolean(state.left.green && state.right.red && state.omni.force); - const hasAny = leftHit || rightHit || forceHit; - - return ( -