mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
garbage
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-ByBX9bHx.js"></script>
|
<script type="module" crossorigin src="/assets/index-DqjDfNt5.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DsyhauXw.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DsyhauXw.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -91,9 +91,10 @@ export default function VideoTile({
|
|||||||
const limiterOvercurrentMotors = useMemo(() => {
|
const limiterOvercurrentMotors = useMemo(() => {
|
||||||
const motors = overcurrentLimiter?.overcurrent?.motors;
|
const motors = overcurrentLimiter?.overcurrent?.motors;
|
||||||
if (!motors) return null;
|
if (!motors) return null;
|
||||||
return Object.entries(motors)
|
const active = Object.entries(motors)
|
||||||
.filter(([, active]) => Boolean(active))
|
.filter(([, flag]) => Boolean(flag))
|
||||||
.map(([key]) => key);
|
.map(([key]) => key);
|
||||||
|
return active.length ? active : null;
|
||||||
}, [overcurrentLimiter]);
|
}, [overcurrentLimiter]);
|
||||||
const wheelOvercurrents = sensors?.wheelOvercurrents || null;
|
const wheelOvercurrents = sensors?.wheelOvercurrents || null;
|
||||||
const overcurrentMotors = limiterOvercurrentMotors ?? (
|
const overcurrentMotors = limiterOvercurrentMotors ?? (
|
||||||
|
|||||||
Reference in New Issue
Block a user