mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
wah
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,8 +11,8 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||||
<title>Multi Roomba Rover</title>
|
<title>Multi Roomba Rover</title>
|
||||||
<script type="module" crossorigin src="/assets/index-Bg7GX6fz.js"></script>
|
<script type="module" crossorigin src="/assets/index-ByBX9bHx.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-HhAzSaxc.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DsyhauXw.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -450,6 +450,7 @@ export default function VideoTile({
|
|||||||
fill={overlayFill}
|
fill={overlayFill}
|
||||||
visible={overlayVisible}
|
visible={overlayVisible}
|
||||||
compact={mobileHud}
|
compact={mobileHud}
|
||||||
|
debug={overcurrentLimiter ? { active: limiterActive, count: overcurrentMotors.length, fill: overlayFill } : null}
|
||||||
/>
|
/>
|
||||||
<LowBatteryOverlay charge={batteryCharge} config={batteryConfig} compact={mobileHud} />
|
<LowBatteryOverlay charge={batteryCharge} config={batteryConfig} compact={mobileHud} />
|
||||||
{showVerticalBattery && batteryVisual.available ? (
|
{showVerticalBattery && batteryVisual.available ? (
|
||||||
@@ -750,7 +751,7 @@ const OVERCURRENT_LABELS = {
|
|||||||
sideBrush: 'Side brush',
|
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;
|
if (!visible) return null;
|
||||||
const safeLabels = Array.isArray(labels) && labels.length ? labels : ['Overcurrent'];
|
const safeLabels = Array.isArray(labels) && labels.length ? labels : ['Overcurrent'];
|
||||||
const containerClass = compact ? 'p-2' : 'p-4';
|
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 className={`relative z-10 text-center font-semibold text-white animate-pulse ${textClass}`}>
|
||||||
<div>OVERCURRENT</div>
|
<div>OVERCURRENT</div>
|
||||||
<div className={`mt-0 font-medium text-white ${subTextClass}`}>{safeLabels.join(', ')}</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>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user