mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -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-title" content="Multi Roomba Rover" />
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -19,6 +19,9 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
||||
const wheelCurrentRight = sensors?.wheelRightCurrentMa ?? 0;
|
||||
const sideBrushCurrent = sensors?.sideBrushCurrentMa ?? 0;
|
||||
const mainBrushCurrent = sensors?.mainBrushCurrentMa ?? 0;
|
||||
const bumpDepress = 6;
|
||||
const bumpLeftOffset = bumps.bumpLeft ? bumpDepress : 0;
|
||||
const bumpRightOffset = bumps.bumpRight ? bumpDepress : 0;
|
||||
|
||||
const lightAngles = buildSegments({
|
||||
count: 6,
|
||||
@@ -135,8 +138,8 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
||||
<ArcSegment
|
||||
cx={centerX}
|
||||
cy={centerY}
|
||||
rInner={lightRingInner}
|
||||
rOuter={lightRingOuter}
|
||||
rInner={lightRingInner - bumpLeftOffset}
|
||||
rOuter={lightRingOuter - bumpLeftOffset}
|
||||
startDeg={-70}
|
||||
endDeg={-6}
|
||||
color={bumps.bumpLeft ? '#ef4444' : '#475569'}
|
||||
@@ -146,8 +149,8 @@ function TopDownMap({ sensors = {}, variant = 'full', size: overrideSize, overla
|
||||
<ArcSegment
|
||||
cx={centerX}
|
||||
cy={centerY}
|
||||
rInner={lightRingInner}
|
||||
rOuter={lightRingOuter}
|
||||
rInner={lightRingInner - bumpRightOffset}
|
||||
rOuter={lightRingOuter - bumpRightOffset}
|
||||
startDeg={6}
|
||||
endDeg={70}
|
||||
color={bumps.bumpRight ? '#ef4444' : '#475569'}
|
||||
|
||||
Reference in New Issue
Block a user