diff --git a/src/assets/joystick-profiles.ts b/src/assets/joystick-profiles.ts index fbfcd1c9c..d4d1853b1 100644 --- a/src/assets/joystick-profiles.ts +++ b/src/assets/joystick-profiles.ts @@ -15,7 +15,7 @@ import { // TODO: Adjust mapping for PS5 controller export const cockpitStandardToProtocols: JoystickProtocolActionsMapping = { - name: 'Cockpit Standard Gamepad to Protocols', + name: 'Default ROV functions mapping', axesCorrespondencies: { [JoystickAxis.A0]: { action: mavlinkManualControlAxes.axis_y, min: -1000, max: +1000 }, [JoystickAxis.A1]: { action: mavlinkManualControlAxes.axis_x, min: +1000, max: -1000 }, @@ -24,42 +24,42 @@ export const cockpitStandardToProtocols: JoystickProtocolActionsMapping = { }, buttonsCorrespondencies: { [CockpitModifierKeyOption.regular]: { - [JoystickButton.B0]: { action: availableMavlinkManualControlButtonFunctions['Arm'] }, - [JoystickButton.B1]: { action: availableMavlinkManualControlButtonFunctions['Disarm'] }, - [JoystickButton.B2]: { action: availableMavlinkManualControlButtonFunctions['Mount tilt up'] }, - [JoystickButton.B3]: { action: availableMavlinkManualControlButtonFunctions['Mount tilt down'] }, - [JoystickButton.B4]: { action: modifierKeyActions.shift }, - [JoystickButton.B5]: { action: otherAvailableActions.no_function }, - [JoystickButton.B6]: { action: availableMavlinkManualControlButtonFunctions['Gain inc'] }, - [JoystickButton.B7]: { action: availableMavlinkManualControlButtonFunctions['Gain dec'] }, - [JoystickButton.B8]: { action: availableMavlinkManualControlButtonFunctions['Lights1 brighter'] }, - [JoystickButton.B9]: { action: availableMavlinkManualControlButtonFunctions['Lights1 dimmer'] }, - [JoystickButton.B10]: { action: availableCockpitActions.toggle_full_screen }, - [JoystickButton.B11]: { action: otherAvailableActions.no_function }, - [JoystickButton.B12]: { action: otherAvailableActions.no_function }, - [JoystickButton.B13]: { action: otherAvailableActions.no_function }, - [JoystickButton.B14]: { action: otherAvailableActions.no_function }, - [JoystickButton.B15]: { action: otherAvailableActions.no_function }, - [JoystickButton.B16]: { action: otherAvailableActions.no_function }, - [JoystickButton.B17]: { action: otherAvailableActions.no_function }, + [JoystickButton.B0]: { action: modifierKeyActions.shift }, + [JoystickButton.B1]: { action: availableMavlinkManualControlButtonFunctions['Mode manual'] }, + [JoystickButton.B2]: { action: availableMavlinkManualControlButtonFunctions['Mode depth hold'] }, + [JoystickButton.B3]: { action: availableMavlinkManualControlButtonFunctions['Mode stabilize'] }, + [JoystickButton.B4]: { action: availableCockpitActions.go_to_previous_view }, + [JoystickButton.B5]: { action: availableCockpitActions.go_to_next_view }, + [JoystickButton.B6]: { action: availableMavlinkManualControlButtonFunctions['Mount tilt down'] }, + [JoystickButton.B7]: { action: availableMavlinkManualControlButtonFunctions['Mount tilt up'] }, + [JoystickButton.B8]: { action: availableMavlinkManualControlButtonFunctions['Arm'] }, + [JoystickButton.B9]: { action: availableMavlinkManualControlButtonFunctions['Disarm'] }, + [JoystickButton.B10]: { action: otherAvailableActions.no_function }, + [JoystickButton.B11]: { action: availableMavlinkManualControlButtonFunctions['Input hold set'] }, + [JoystickButton.B12]: { action: availableMavlinkManualControlButtonFunctions['Gain inc'] }, + [JoystickButton.B13]: { action: availableMavlinkManualControlButtonFunctions['Gain dec'] }, + [JoystickButton.B14]: { action: availableMavlinkManualControlButtonFunctions['Lights1 dimmer'] }, + [JoystickButton.B15]: { action: availableMavlinkManualControlButtonFunctions['Lights1 brighter'] }, + [JoystickButton.B16]: { action: availableCockpitActions.toggle_bottom_bar }, + [JoystickButton.B17]: { action: availableCockpitActions.toggle_full_screen }, }, [CockpitModifierKeyOption.shift]: { [JoystickButton.B0]: { action: otherAvailableActions.no_function }, [JoystickButton.B1]: { action: otherAvailableActions.no_function }, - [JoystickButton.B2]: { action: otherAvailableActions.no_function }, - [JoystickButton.B3]: { action: otherAvailableActions.no_function }, + [JoystickButton.B2]: { action: availableMavlinkManualControlButtonFunctions['Mode poshold'] }, + [JoystickButton.B3]: { action: availableMavlinkManualControlButtonFunctions['Mode acro'] }, [JoystickButton.B4]: { action: otherAvailableActions.no_function }, [JoystickButton.B5]: { action: otherAvailableActions.no_function }, - [JoystickButton.B6]: { action: otherAvailableActions.no_function }, - [JoystickButton.B7]: { action: otherAvailableActions.no_function }, + [JoystickButton.B6]: { action: availableMavlinkManualControlButtonFunctions['Servo 1 min'] }, + [JoystickButton.B7]: { action: availableMavlinkManualControlButtonFunctions['Servo 1 max'] }, [JoystickButton.B8]: { action: otherAvailableActions.no_function }, [JoystickButton.B9]: { action: otherAvailableActions.no_function }, - [JoystickButton.B10]: { action: otherAvailableActions.no_function }, + [JoystickButton.B10]: { action: availableMavlinkManualControlButtonFunctions['Relay 1 toggle'] }, [JoystickButton.B11]: { action: otherAvailableActions.no_function }, - [JoystickButton.B12]: { action: otherAvailableActions.no_function }, - [JoystickButton.B13]: { action: otherAvailableActions.no_function }, - [JoystickButton.B14]: { action: otherAvailableActions.no_function }, - [JoystickButton.B15]: { action: otherAvailableActions.no_function }, + [JoystickButton.B12]: { action: availableMavlinkManualControlButtonFunctions['Trim pitch inc'] }, + [JoystickButton.B13]: { action: availableMavlinkManualControlButtonFunctions['Trim roll dec'] }, + [JoystickButton.B14]: { action: availableMavlinkManualControlButtonFunctions['Trim pitch dec'] }, + [JoystickButton.B15]: { action: availableMavlinkManualControlButtonFunctions['Trim roll inc'] }, [JoystickButton.B16]: { action: otherAvailableActions.no_function }, [JoystickButton.B17]: { action: otherAvailableActions.no_function }, },