mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
g
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>webui</title>
|
<title>webui</title>
|
||||||
<script type="module" crossorigin src="/assets/index-REGSWoMA.js"></script>
|
<script type="module" crossorigin src="/assets/index-BWMrB-XN.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-BTX_m20O.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-BTX_m20O.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default function VideoTile({ sessionInfo, label, forceMute = false, telem
|
|||||||
controls={false}
|
controls={false}
|
||||||
className="h-full w-full object-contain"
|
className="h-full w-full object-contain"
|
||||||
/>
|
/>
|
||||||
<HudOverlay frame={telemetryFrame} session={sessionInfo}/>
|
<HudOverlay frame={telemetryFrame} label={label}/>
|
||||||
<OvercurrentOverlay motors={overcurrentMotors} />
|
<OvercurrentOverlay motors={overcurrentMotors} />
|
||||||
</div>
|
</div>
|
||||||
<BatteryBar charge={batteryCharge} config={batteryConfig} label={label} status={renderedStatus} />
|
<BatteryBar charge={batteryCharge} config={batteryConfig} label={label} status={renderedStatus} />
|
||||||
@@ -192,7 +192,7 @@ function BatteryBar({ charge, config, label, status }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function HudOverlay({ frame, session }) {
|
function HudOverlay({ frame, label }) {
|
||||||
const sensors = frame?.sensors;
|
const sensors = frame?.sensors;
|
||||||
const bumps = sensors?.bumpsAndWheelDrops || {};
|
const bumps = sensors?.bumpsAndWheelDrops || {};
|
||||||
const [now, setNow] = useState(() => Date.now());
|
const [now, setNow] = useState(() => Date.now());
|
||||||
|
|||||||
Reference in New Issue
Block a user