mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
horn button light up
This commit is contained in:
@@ -13,7 +13,7 @@ function formatDegrees(value) {
|
||||
|
||||
export default function CameraServoPanel() {
|
||||
const {
|
||||
state: { roverId, camera, keymap },
|
||||
state: { roverId, camera, keymap, horn },
|
||||
pipeline,
|
||||
actions: { setServoAngle, nudgeServo, goServoHome, setNightVision, startHorn, stopHorn },
|
||||
} = useControlSystem();
|
||||
@@ -110,6 +110,7 @@ export default function CameraServoPanel() {
|
||||
onStart={startHorn}
|
||||
onStop={stopHorn}
|
||||
keyLabel={hornKey}
|
||||
active={horn?.active}
|
||||
/>
|
||||
)}
|
||||
{enabled && (
|
||||
|
||||
Reference in New Issue
Block a user