This commit is contained in:
legop3
2026-01-21 14:08:42 -05:00
parent 99a1c5418d
commit c465c03e34
3 changed files with 19 additions and 11 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<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-CliLyfmZ.js"></script> <script type="module" crossorigin src="/assets/index-Bg7GX6fz.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-HhAzSaxc.css"> <link rel="stylesheet" crossorigin href="/assets/index-HhAzSaxc.css">
</head> </head>
<body> <body>
+10 -2
View File
@@ -88,13 +88,21 @@ export default function VideoTile({
// batteryCapacity, // batteryCapacity,
// config: batteryConfig, // config: batteryConfig,
// }); // });
const limiterOvercurrentMotors = useMemo(() => {
const motors = overcurrentLimiter?.overcurrent?.motors;
if (!motors) return null;
return Object.entries(motors)
.filter(([, active]) => Boolean(active))
.map(([key]) => key);
}, [overcurrentLimiter]);
const wheelOvercurrents = sensors?.wheelOvercurrents || null; const wheelOvercurrents = sensors?.wheelOvercurrents || null;
const overcurrentMotors = const overcurrentMotors = limiterOvercurrentMotors ?? (
wheelOvercurrents == null wheelOvercurrents == null
? [] ? []
: Object.entries(wheelOvercurrents) : Object.entries(wheelOvercurrents)
.filter(([, active]) => Boolean(active)) .filter(([, active]) => Boolean(active))
.map(([key]) => key); .map(([key]) => key)
);
const limiterCaps = overcurrentLimiter?.caps || null; const limiterCaps = overcurrentLimiter?.caps || null;
const limiterGroups = overcurrentLimiter?.overcurrent?.groups || null; const limiterGroups = overcurrentLimiter?.overcurrent?.groups || null;
const limiterFill = useMemo(() => { const limiterFill = useMemo(() => {