mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
useless
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
||||
<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-CliLyfmZ.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Bg7GX6fz.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-HhAzSaxc.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -88,13 +88,21 @@ export default function VideoTile({
|
||||
// batteryCapacity,
|
||||
// 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 overcurrentMotors =
|
||||
const overcurrentMotors = limiterOvercurrentMotors ?? (
|
||||
wheelOvercurrents == null
|
||||
? []
|
||||
: Object.entries(wheelOvercurrents)
|
||||
.filter(([, active]) => Boolean(active))
|
||||
.map(([key]) => key);
|
||||
.map(([key]) => key)
|
||||
);
|
||||
const limiterCaps = overcurrentLimiter?.caps || null;
|
||||
const limiterGroups = overcurrentLimiter?.overcurrent?.groups || null;
|
||||
const limiterFill = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user