mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
bumping bumpers :3
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-jVd0ekcb.js"></script>
|
<script type="module" crossorigin src="/assets/index-CEzIr1Vb.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D2GpvMU5.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D2GpvMU5.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
|||||||
const wheelCurrentRight = sensors?.wheelRightCurrentMa ?? 0;
|
const wheelCurrentRight = sensors?.wheelRightCurrentMa ?? 0;
|
||||||
const sideBrushCurrent = sensors?.sideBrushCurrentMa ?? 0;
|
const sideBrushCurrent = sensors?.sideBrushCurrentMa ?? 0;
|
||||||
const mainBrushCurrent = sensors?.mainBrushCurrentMa ?? 0;
|
const mainBrushCurrent = sensors?.mainBrushCurrentMa ?? 0;
|
||||||
|
const bumpDepress = 6;
|
||||||
|
const bumpLeftOffset = bumps.bumpLeft ? bumpDepress : 0;
|
||||||
|
const bumpRightOffset = bumps.bumpRight ? bumpDepress : 0;
|
||||||
|
|
||||||
const lightAngles = buildSegments({
|
const lightAngles = buildSegments({
|
||||||
count: 6,
|
count: 6,
|
||||||
@@ -135,8 +138,8 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
|||||||
<ArcSegment
|
<ArcSegment
|
||||||
cx={centerX}
|
cx={centerX}
|
||||||
cy={centerY}
|
cy={centerY}
|
||||||
rInner={lightRingInner}
|
rInner={lightRingInner - bumpLeftOffset}
|
||||||
rOuter={lightRingOuter}
|
rOuter={lightRingOuter - bumpLeftOffset}
|
||||||
startDeg={-70}
|
startDeg={-70}
|
||||||
endDeg={-6}
|
endDeg={-6}
|
||||||
color={bumps.bumpLeft ? '#ef4444' : '#475569'}
|
color={bumps.bumpLeft ? '#ef4444' : '#475569'}
|
||||||
@@ -146,8 +149,8 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
|||||||
<ArcSegment
|
<ArcSegment
|
||||||
cx={centerX}
|
cx={centerX}
|
||||||
cy={centerY}
|
cy={centerY}
|
||||||
rInner={lightRingInner}
|
rInner={lightRingInner - bumpRightOffset}
|
||||||
rOuter={lightRingOuter}
|
rOuter={lightRingOuter - bumpRightOffset}
|
||||||
startDeg={6}
|
startDeg={6}
|
||||||
endDeg={70}
|
endDeg={70}
|
||||||
color={bumps.bumpRight ? '#ef4444' : '#475569'}
|
color={bumps.bumpRight ? '#ef4444' : '#475569'}
|
||||||
|
|||||||
Reference in New Issue
Block a user