mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21: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-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>
|
||||||
|
|||||||
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user