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
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-Ci14A7oL.js"></script>
|
<script type="module" crossorigin src="/assets/index-DuynkqQb.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-Dv-S8jVC.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-Dv-S8jVC.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -85,11 +85,7 @@ export function useDockIr(sensors, options = {}) {
|
|||||||
const right = withWindow(state.right);
|
const right = withWindow(state.right);
|
||||||
const omni = withWindow(state.omni);
|
const omni = withWindow(state.omni);
|
||||||
const forceDetected = left.force || right.force || omni.force;
|
const forceDetected = left.force || right.force || omni.force;
|
||||||
const leftColor = left.red || left.green;
|
const visible = left.active || right.active || omni.active;
|
||||||
const rightColor = right.red || right.green;
|
|
||||||
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 =
|
const bias =
|
||||||
left.active && !right.active
|
left.active && !right.active
|
||||||
? 'right'
|
? 'right'
|
||||||
|
|||||||
Reference in New Issue
Block a user