mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
reduce autocharge timer and change wording
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
autoChargeTimeout = 5 * time.Second
|
||||
autoChargeTimeout = 2 * time.Second
|
||||
autoChargeCooldown = 0 * time.Minute
|
||||
sourceHomeBase = 1 << 1
|
||||
)
|
||||
|
||||
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="Roomba Rover" />
|
||||
<title>Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-79XNkqrd.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Bg60ztdI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CkqCBh_q.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -123,9 +123,9 @@ export default function DriveDockAction({
|
||||
const dockInstructions = {
|
||||
summary: 'Use assist mode to manually line up with the dock.',
|
||||
steps: [
|
||||
'Line up the round front sensor on the rover with the sensor on the dock',
|
||||
'Use tiny forward/reverse turns until the sensors are centered',
|
||||
'When contact is made, wait for docked + charging status',
|
||||
'Line up the round front sensor on the rover with the sensors on the dock',
|
||||
'Move carefully, lining up your sensor with the center of the dock',
|
||||
'When contact is made, charging will start in about 5 seconds.',
|
||||
],
|
||||
};
|
||||
|
||||
@@ -140,9 +140,9 @@ export default function DriveDockAction({
|
||||
|
||||
useEffect(() => {
|
||||
if (!manualAssistActive) return;
|
||||
if (!docked) return;
|
||||
if (!charging) return;
|
||||
actions.setManualDockAssistActive(false);
|
||||
}, [actions, docked, manualAssistActive]);
|
||||
}, [actions, charging, manualAssistActive]);
|
||||
|
||||
const handleReturnToDrive = async () => {
|
||||
if (!roverId || pending) return;
|
||||
|
||||
Reference in New Issue
Block a user