manual docking mode real life testing

This commit is contained in:
legop3
2026-05-17 13:32:21 -04:00
parent d326ab755a
commit 74e5187bad
12 changed files with 254 additions and 171 deletions
@@ -122,6 +122,8 @@ export default function KeyboardInputManager() {
state,
actions: {
setMode,
setManualDockAssistActive,
toggleManualDockAssist,
setDriveVector,
setAuxMotors,
nudgeServo,
@@ -372,11 +374,11 @@ export default function KeyboardInputManager() {
if (newlyPressed.length > 0) {
if (newlyPressed.some((token) => keymap.driveMacro?.has(token))) {
setManualDockAssistActive(false);
setMode('drive');
runMacro('drive-sequence');
} else if (newlyPressed.some((token) => keymap.dockMacro?.has(token))) {
setMode('dock');
runMacro('seek-dock');
toggleManualDockAssist();
} else if (newlyPressed.some((token) => keymap.nightVisionToggle?.has(token))) {
toggleNightVision();
} else if (newlyPressed.some((token) => keymap.hornHonk?.has(token))) {
@@ -441,12 +443,14 @@ export default function KeyboardInputManager() {
keymap.micPtt,
resetAll,
runMacro,
setManualDockAssistActive,
setMicPttActive,
setMode,
stopAllMotion,
stopSongLoop,
startHorn,
stopHorn,
toggleManualDockAssist,
triggerHomeAssistantCycle,
]);