mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 18:10:47 -04:00
many small improvements
This commit is contained in:
@@ -31,6 +31,8 @@ export function useManualDockAssist(options = {}) {
|
||||
const justDocked = docked && !wasDockedRef.current;
|
||||
const justUndocked = !docked && wasDockedRef.current;
|
||||
if (active && justDocked) {
|
||||
// Stop on the first home-base contact so continued input cannot push the rover against the dock.
|
||||
actions.stopAllMotion();
|
||||
actions.sendSong([{ note: 84, duration: 6 }], { slot: 1 });
|
||||
} else if (active && justUndocked) {
|
||||
actions.sendSong([{ note: 72, duration: 6 }], { slot: 1 });
|
||||
|
||||
Reference in New Issue
Block a user