This commit is contained in:
legop3
2026-01-21 14:11:12 -05:00
parent c465c03e34
commit 9c046cc3b1
4 changed files with 18 additions and 12 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -11,8 +11,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-Bg7GX6fz.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-HhAzSaxc.css">
<script type="module" crossorigin src="/assets/index-ByBX9bHx.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DsyhauXw.css">
</head>
<body>
<div id="root"></div>
+7 -1
View File
@@ -450,6 +450,7 @@ export default function VideoTile({
fill={overlayFill}
visible={overlayVisible}
compact={mobileHud}
debug={overcurrentLimiter ? { active: limiterActive, count: overcurrentMotors.length, fill: overlayFill } : null}
/>
<LowBatteryOverlay charge={batteryCharge} config={batteryConfig} compact={mobileHud} />
{showVerticalBattery && batteryVisual.available ? (
@@ -750,7 +751,7 @@ const OVERCURRENT_LABELS = {
sideBrush: 'Side brush',
};
function OvercurrentOverlay({ labels, fill = 0, visible = false, compact = false }) {
function OvercurrentOverlay({ labels, fill = 0, visible = false, compact = false, debug = null }) {
if (!visible) return null;
const safeLabels = Array.isArray(labels) && labels.length ? labels : ['Overcurrent'];
const containerClass = compact ? 'p-2' : 'p-4';
@@ -768,6 +769,11 @@ function OvercurrentOverlay({ labels, fill = 0, visible = false, compact = false
<div className={`relative z-10 text-center font-semibold text-white animate-pulse ${textClass}`}>
<div>OVERCURRENT</div>
<div className={`mt-0 font-medium text-white ${subTextClass}`}>{safeLabels.join(', ')}</div>
{debug ? (
<div className="mt-0 text-[0.55rem] font-normal text-red-100">
{`dbg a:${debug.active ? 1 : 0} m:${debug.count} f:${Math.round(debug.fill * 100)}%`}
</div>
) : null}
</div>
</div>
);