This commit is contained in:
legop3
2025-12-02 14:43:56 -05:00
parent 9bc5d2d06d
commit ace39d5a70
21 changed files with 238 additions and 18 deletions
+6
View File
@@ -254,6 +254,10 @@ export function ControlSystemProvider({ children }) {
[pipeline],
);
const toggleNightVision = useCallback(() => {
pipeline.sendNightVision('toggle');
}, [pipeline]);
const registerInputState = useCallback((source, data) => {
dispatch({ type: 'control/register-input-state', payload: { source, state: data } });
}, []);
@@ -274,6 +278,7 @@ export function ControlSystemProvider({ children }) {
stopAllMotion,
sendOiCommand,
setSensorStream,
toggleNightVision,
updateKeyBinding,
resetKeyBindings,
registerInputState,
@@ -292,6 +297,7 @@ export function ControlSystemProvider({ children }) {
stopAllMotion,
sendOiCommand,
setSensorStream,
toggleNightVision,
updateKeyBinding,
resetKeyBindings,
registerInputState,