mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
tweak
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-DWWT3yuA.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Ci14A7oL.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Dv-S8jVC.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -87,8 +87,9 @@ export function useDockIr(sensors, options = {}) {
|
||||
const forceDetected = left.force || right.force || omni.force;
|
||||
const leftColor = left.red || left.green;
|
||||
const rightColor = right.red || right.green;
|
||||
// Require either force field (close range) or both side colors to show the HUD, avoiding single stray hits.
|
||||
const visible = forceDetected || (leftColor && rightColor);
|
||||
const omniColor = omni.red || omni.green;
|
||||
// Show when close (force field), or both sides see buoys, or a side + omni see buoy(s) (to surface sooner without single-stray triggers).
|
||||
const visible = forceDetected || (leftColor && rightColor) || ((leftColor || rightColor) && omniColor);
|
||||
const bias =
|
||||
left.active && !right.active
|
||||
? 'right'
|
||||
|
||||
Reference in New Issue
Block a user