@deeptrekker/controls 1.0.0 → 1.0.1-1723-fix-styling-cruise-control.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,280 +1,280 @@
1
- /**
2
- * ROV Controls
3
- */
4
- export declare enum RovControl {
5
- AltitudeLock = "ALTITUDE_LOCK",
6
- AutoStabilization = "AUTO_STABILIZATION",
7
- AuxLight = "AUX_LIGHT",
8
- CameraHome = "CAMERA_HOME",
9
- ChangeSonarFrequency = "CHANGE_SONAR_FREQUENCY",
10
- DecreaseAuxLightBrightness = "DECREASE_AUX_LIGHT_BRIGHTNESS",
11
- DecreaseLateralGain = "DECREASE_LATERAL_GAIN",
12
- DecreaseMainLightBrightness = "DECREASE_MAIN_LIGHT_BRIGHTNESS",
13
- DecreaseRollPitchGain = "DECREASE_ROLL_PITCH_GAIN",
14
- DecreaseSonarGain = "DECREASE_SONAR_GAIN",
15
- DecreaseSonarRange = "DECREASE_SONAR_RANGE",
16
- DecreaseSpeedGain = "DECREASE_SPEED_GAIN",
17
- DecreaseSteerGain = "DECREASE_STEER_GAIN",
18
- DecreaseVerticalGain = "DECREASE_VERTICAL_GAIN",
19
- DepthLock = "DEPTH_LOCK",
20
- DisableMotors = "DISABLE_MOTORS",
21
- DistanceLock = "DISTANCE_LOCK",
22
- Fn = "FN",
23
- GrabberClose = "GRABBER_CLOSE",
24
- GrabberOpen = "GRABBER_OPEN",
25
- GrabberRotateLeft = "GRABBER_ROTATE_LEFT",
26
- GrabberRotateRight = "GRABBER_ROTATE_RIGHT",
27
- HeadingLock = "HEADING_LOCK",
28
- IncreaseAuxLightBrightness = "INCREASE_AUX_LIGHT_BRIGHTNESS",
29
- IncreaseLateralGain = "INCREASE_LATERAL_GAIN",
30
- IncreaseMainLightBrightness = "INCREASE_MAIN_LIGHT_BRIGHTNESS",
31
- IncreaseRollPitchGain = "INCREASE_ROLL_PITCH_GAIN",
32
- IncreaseSonarGain = "INCREASE_SONAR_GAIN",
33
- IncreaseSonarRange = "INCREASE_SONAR_RANGE",
34
- IncreaseSpeedGain = "INCREASE_SPEED_GAIN",
35
- IncreaseSteerGain = "INCREASE_STEER_GAIN",
36
- IncreaseVerticalGain = "INCREASE_VERTICAL_GAIN",
37
- LateralLeft = "LATERAL_LEFT",
38
- LateralRight = "LATERAL_RIGHT",
39
- MainLight = "MAIN_LIGHT",
40
- PitchUp = "PITCH_UP",
41
- PitchDown = "PITCH_DOWN",
42
- Record = "RECORD",
43
- ReelTetherIn = "REEL_TETHER_IN",
44
- RollLeft = "ROLL_LEFT",
45
- RollRight = "ROLL_RIGHT",
46
- Screenshot = "SCREENSHOT",
47
- ThrusterForward = "THRUSTER_FORWARD",
48
- ThrusterReverse = "THRUSTER_REVERSE",
49
- TiltDown = "TILT_DOWN",
50
- TiltPlatformDown = "TILT_PLATFORM_DOWN",
51
- TiltPlatformUp = "TILT_PLATFORM_UP",
52
- TiltUp = "TILT_UP",
53
- ToggleLasers = "TOGGLE_LASERS",
54
- VerticalDown = "VERTICAL_DOWN",
55
- VerticalUp = "VERTICAL_UP",
56
- YawLeft = "YAW_LEFT",
57
- YawRight = "YAW_RIGHT",
58
- ZoomIn = "ZOOM_IN",
59
- ZoomOut = "ZOOM_OUT",
60
- CruiseControl = "CRUISE_CONTROL",
61
- ResetPosture = "RESET_POSTURE"
62
- }
63
- /**
64
- * Crawler Controls
65
- */
66
- export declare enum CrawlerControl {
67
- AuxLight = "AUX_LIGHT",
68
- CameraHome = "CAMERA_HOME",
69
- CrawlerForward = "CRAWLER_FORWARD",
70
- CrawlerLeft = "CRAWLER_LEFT",
71
- CrawlerReverse = "CRAWLER_REVERSE",
72
- CrawlerRight = "CRAWLER_RIGHT",
73
- CruiseControl = "CRUISE_CONTROL",
74
- DecreaseExposure = "DECREASE_EXPOSURE",
75
- DecreaseFocus = "FOCUS_DECREASE",
76
- DisableMotors = "DISABLE_MOTORS",
77
- ElevatingArmAscend = "ELEVATING_ARM_ASCEND",
78
- ElevatingArmDescend = "ELEVATING_ARM_DESCEND",
79
- IncreaseExposure = "EXPOSURE_INCREASE",
80
- IncreaseFocus = "FOCUS_INCREASE",
81
- MainLight = "MAIN_LIGHT",
82
- PanLeft = "PAN_LEFT",
83
- PanRight = "PAN_RIGHT",
84
- Record = "RECORD",
85
- ReelReset = "REEL_RESET",
86
- Screenshot = "SCREENSHOT",
87
- SwitchCamera = "SWITCH_CAMERA",
88
- TiltDown = "TILT_DOWN",
89
- TiltUp = "TILT_UP",
90
- ToggleLasers = "TOGGLE_LASERS",
91
- ZoomIn = "ZOOM_IN",
92
- ZoomOut = "ZOOM_OUT"
93
- }
94
- /**
95
- * All Vehicle Controls
96
- */
97
- export declare enum VehicleControl {
98
- AltitudeLock = "ALTITUDE_LOCK",
99
- AutoStabilization = "AUTO_STABILIZATION",
100
- AuxLight = "AUX_LIGHT",
101
- AuxLightBrightness = "AUX_LIGHT_BRIGHTNESS",
102
- CameraHome = "CAMERA_HOME",
103
- ChangeSonarFrequency = "CHANGE_SONAR_FREQUENCY",
104
- CrawlerDrive = "CRAWLER_DRIVE",
105
- CrawlerForward = "CRAWLER_FORWARD",
106
- CrawlerLeft = "CRAWLER_LEFT",
107
- CrawlerReverse = "CRAWLER_REVERSE",
108
- CrawlerRight = "CRAWLER_RIGHT",
109
- CrawlerSteer = "CRAWLER_STEER",
110
- CruiseControl = "CRUISE_CONTROL",
111
- DecreaseAuxLightBrightness = "DECREASE_AUX_LIGHT_BRIGHTNESS",
112
- DecreaseExposure = "DECREASE_EXPOSURE",
113
- DecreaseFocus = "FOCUS_DECREASE",
114
- DecreaseLateralGain = "DECREASE_LATERAL_GAIN",
115
- DecreaseMainLightBrightness = "DECREASE_MAIN_LIGHT_BRIGHTNESS",
116
- DecreaseRollPitchGain = "DECREASE_ROLL_PITCH_GAIN",
117
- DecreaseSonarGain = "DECREASE_SONAR_GAIN",
118
- DecreaseSonarRange = "DECREASE_SONAR_RANGE",
119
- DecreaseSpeedGain = "DECREASE_SPEED_GAIN",
120
- DecreaseSteerGain = "DECREASE_STEER_GAIN",
121
- DecreaseVerticalGain = "DECREASE_VERTICAL_GAIN",
122
- DepthLock = "DEPTH_LOCK",
123
- DisableMotors = "DISABLE_MOTORS",
124
- DistanceLock = "DISTANCE_LOCK",
125
- ElevatingArm = "ELEVATING_ARM",
126
- ElevatingArmAscend = "ELEVATING_ARM_ASCEND",
127
- ElevatingArmDescend = "ELEVATING_ARM_DESCEND",
128
- Exposure = "EXPOSURE",
129
- Focus = "FOCUS",
130
- Fn = "FN",
131
- Grabber = "GRABBER",
132
- GrabberClose = "GRABBER_CLOSE",
133
- GrabberOpen = "GRABBER_OPEN",
134
- GrabberRotateLeft = "GRABBER_ROTATE_LEFT",
135
- GrabberRotateRight = "GRABBER_ROTATE_RIGHT",
136
- HeadingLock = "HEADING_LOCK",
137
- IncreaseAuxLightBrightness = "INCREASE_AUX_LIGHT_BRIGHTNESS",
138
- IncreaseExposure = "EXPOSURE_INCREASE",
139
- IncreaseFocus = "FOCUS_INCREASE",
140
- IncreaseLateralGain = "INCREASE_LATERAL_GAIN",
141
- IncreaseMainLightBrightness = "INCREASE_MAIN_LIGHT_BRIGHTNESS",
142
- IncreaseRollPitchGain = "INCREASE_ROLL_PITCH_GAIN",
143
- IncreaseSonarGain = "INCREASE_SONAR_GAIN",
144
- IncreaseSonarRange = "INCREASE_SONAR_RANGE",
145
- IncreaseSpeedGain = "INCREASE_SPEED_GAIN",
146
- IncreaseSteerGain = "INCREASE_STEER_GAIN",
147
- IncreaseVerticalGain = "INCREASE_VERTICAL_GAIN",
148
- Lateral = "LATERAL",
149
- LateralLeft = "LATERAL_LEFT",
150
- LateralGain = "LATERAL_GAIN",
151
- LateralRight = "LATERAL_RIGHT",
152
- MainLight = "MAIN_LIGHT",
153
- MainLightBrightness = "MAIN_LIGHT_BRIGHTNESS",
154
- Pan = "PAN",
155
- PanLeft = "PAN_LEFT",
156
- PanRight = "PAN_RIGHT",
157
- Pitch = "PITCH",
158
- PitchUp = "PITCH_UP",
159
- PitchDown = "PITCH_DOWN",
160
- PitchLock = "PITCH_LOCK",
161
- PrecisionThrusters = "PRECISION_THRUSTERS",
162
- Record = "RECORD",
163
- ReelDisengage = "REEL_DISENGAGE",
164
- ReelMotors = "REEL_MOTORS",
165
- ReelReset = "REEL_RESET",
166
- ResetPosture = "RESET_POSTURE",
167
- ReelTetherIn = "REEL_TETHER_IN",
168
- Roll = "ROLL",
169
- RollLeft = "ROLL_LEFT",
170
- RollPitchGain = "ROLL_PITCH_GAIN",
171
- RollRight = "ROLL_RIGHT",
172
- RotateGrabber = "ROTATE_GRABBER",
173
- Screenshot = "SCREENSHOT",
174
- SonarGain = "SONAR_GAIN",
175
- SonarRange = "SONAR_RANGE",
176
- SpeedGain = "SPEED_GAIN",
177
- StationHolding = "STATION_HOLDING",
178
- SteerGain = "STEER_GAIN",
179
- SwitchCamera = "SWITCH_CAMERA",
180
- ThrusterForward = "THRUSTER_FORWARD",
181
- ThrusterReverse = "THRUSTER_REVERSE",
182
- Thrusters = "THRUSTER",
183
- Tilt = "TILT",
184
- TiltDown = "TILT_DOWN",
185
- TiltPlatform = "TILT_PLATFORM",
186
- TiltPlatformDown = "TILT_PLATFORM_DOWN",
187
- TiltPlatformUp = "TILT_PLATFORM_UP",
188
- TiltUp = "TILT_UP",
189
- ToggleLasers = "TOGGLE_LASERS",
190
- Vertical = "VERTICAL",
191
- VerticalDown = "VERTICAL_DOWN",
192
- VerticalGain = "VERTICAL_GAIN",
193
- VerticalUp = "VERTICAL_UP",
194
- Yaw = "YAW",
195
- YawLeft = "YAW_LEFT",
196
- YawRight = "YAW_RIGHT",
197
- Zoom = "ZOOM",
198
- ZoomIn = "ZOOM_IN",
199
- ZoomOut = "ZOOM_OUT"
200
- }
201
- /**
202
- * Input Mapping Profile
203
- */
204
- export interface InputMappingProfileStore {
205
- input_mapping_profile_id: number;
206
- controller_group_id: number;
207
- name: string;
208
- created_at: Date;
209
- modified_at: Date;
210
- default: number;
211
- selected: number;
212
- inverted: number;
213
- fn_profile_id?: number;
214
- fnProfile?: boolean;
215
- }
216
- export interface ControllerGroupStore {
217
- controller_group_id: number;
218
- controller_id: string;
219
- controller_group: string;
220
- }
221
- export interface VehicleControlsStore {
222
- vehicle_control_id: number;
223
- name: string;
224
- created_at: Date;
225
- }
226
- export interface MappedInput {
227
- input_key: string;
228
- input_type: InputType;
229
- control_type: ControlType;
230
- controller_id: string;
231
- fnProfile?: boolean;
232
- }
233
- export declare enum ControlType {
234
- Vehicle = "VEHICLE",
235
- Camera = "CAMERA",
236
- /** @deprecated use `Miscellaneous` */
237
- Reel = "REEL",
238
- Lights = "LIGHTS",
239
- IntelligentModes = "INTELLIGENT_MODES",
240
- /** @deprecated use `IntelligentModes` */
241
- IntelligentMode = "INTELLIGENT_MODE",
242
- Tools = "TOOLS",
243
- /** @deprecated use `Tools` */
244
- Grabber = "GRABBER",
245
- Sonar = "SONAR",
246
- Menu = "MENU",
247
- Miscellaneous = "MISCELLANEOUS"
248
- }
249
- export interface RawInput {
250
- input_mapping_profile_id: number;
251
- vehicle_control_id: number;
252
- input_key: string;
253
- input_type: InputType;
254
- controller_id: string;
255
- control_type: ControlType;
256
- name: string;
257
- control_name: VehicleControl;
258
- created_at: string;
259
- fn_profile_id?: number;
260
- fnProfile?: boolean;
261
- }
262
- export interface InputMapStore {
263
- input_mapping_profile_id: number;
264
- vehicle_control_id: number;
265
- input_key: string;
266
- input_type: InputType;
267
- controller_id: string;
268
- name: string;
269
- control_name: string;
270
- created_at: string;
271
- }
272
- export declare enum InputType {
273
- JoystickAxis = "AXIS",
274
- JoystickButton = "BUTTON",
275
- KeyboardKey = "KEY"
276
- }
277
- export interface CombinedCommand {
278
- positiveCommand: VehicleControl;
279
- negativeCommand: VehicleControl;
280
- }
1
+ /**
2
+ * ROV Controls
3
+ */
4
+ export declare enum RovControl {
5
+ AltitudeLock = "ALTITUDE_LOCK",
6
+ AutoStabilization = "AUTO_STABILIZATION",
7
+ AuxLight = "AUX_LIGHT",
8
+ CameraHome = "CAMERA_HOME",
9
+ ChangeSonarFrequency = "CHANGE_SONAR_FREQUENCY",
10
+ DecreaseAuxLightBrightness = "DECREASE_AUX_LIGHT_BRIGHTNESS",
11
+ DecreaseLateralGain = "DECREASE_LATERAL_GAIN",
12
+ DecreaseMainLightBrightness = "DECREASE_MAIN_LIGHT_BRIGHTNESS",
13
+ DecreaseRollPitchGain = "DECREASE_ROLL_PITCH_GAIN",
14
+ DecreaseSonarGain = "DECREASE_SONAR_GAIN",
15
+ DecreaseSonarRange = "DECREASE_SONAR_RANGE",
16
+ DecreaseSpeedGain = "DECREASE_SPEED_GAIN",
17
+ DecreaseSteerGain = "DECREASE_STEER_GAIN",
18
+ DecreaseVerticalGain = "DECREASE_VERTICAL_GAIN",
19
+ DepthLock = "DEPTH_LOCK",
20
+ DisableMotors = "DISABLE_MOTORS",
21
+ DistanceLock = "DISTANCE_LOCK",
22
+ Fn = "FN",
23
+ GrabberClose = "GRABBER_CLOSE",
24
+ GrabberOpen = "GRABBER_OPEN",
25
+ GrabberRotateLeft = "GRABBER_ROTATE_LEFT",
26
+ GrabberRotateRight = "GRABBER_ROTATE_RIGHT",
27
+ HeadingLock = "HEADING_LOCK",
28
+ IncreaseAuxLightBrightness = "INCREASE_AUX_LIGHT_BRIGHTNESS",
29
+ IncreaseLateralGain = "INCREASE_LATERAL_GAIN",
30
+ IncreaseMainLightBrightness = "INCREASE_MAIN_LIGHT_BRIGHTNESS",
31
+ IncreaseRollPitchGain = "INCREASE_ROLL_PITCH_GAIN",
32
+ IncreaseSonarGain = "INCREASE_SONAR_GAIN",
33
+ IncreaseSonarRange = "INCREASE_SONAR_RANGE",
34
+ IncreaseSpeedGain = "INCREASE_SPEED_GAIN",
35
+ IncreaseSteerGain = "INCREASE_STEER_GAIN",
36
+ IncreaseVerticalGain = "INCREASE_VERTICAL_GAIN",
37
+ LateralLeft = "LATERAL_LEFT",
38
+ LateralRight = "LATERAL_RIGHT",
39
+ MainLight = "MAIN_LIGHT",
40
+ PitchUp = "PITCH_UP",
41
+ PitchDown = "PITCH_DOWN",
42
+ Record = "RECORD",
43
+ ReelTetherIn = "REEL_TETHER_IN",
44
+ RollLeft = "ROLL_LEFT",
45
+ RollRight = "ROLL_RIGHT",
46
+ Screenshot = "SCREENSHOT",
47
+ ThrusterForward = "THRUSTER_FORWARD",
48
+ ThrusterReverse = "THRUSTER_REVERSE",
49
+ TiltDown = "TILT_DOWN",
50
+ TiltPlatformDown = "TILT_PLATFORM_DOWN",
51
+ TiltPlatformUp = "TILT_PLATFORM_UP",
52
+ TiltUp = "TILT_UP",
53
+ ToggleLasers = "TOGGLE_LASERS",
54
+ VerticalDown = "VERTICAL_DOWN",
55
+ VerticalUp = "VERTICAL_UP",
56
+ YawLeft = "YAW_LEFT",
57
+ YawRight = "YAW_RIGHT",
58
+ ZoomIn = "ZOOM_IN",
59
+ ZoomOut = "ZOOM_OUT",
60
+ CruiseControl = "CRUISE_CONTROL",
61
+ ResetPosture = "RESET_POSTURE"
62
+ }
63
+ /**
64
+ * Crawler Controls
65
+ */
66
+ export declare enum CrawlerControl {
67
+ AuxLight = "AUX_LIGHT",
68
+ CameraHome = "CAMERA_HOME",
69
+ CrawlerForward = "CRAWLER_FORWARD",
70
+ CrawlerLeft = "CRAWLER_LEFT",
71
+ CrawlerReverse = "CRAWLER_REVERSE",
72
+ CrawlerRight = "CRAWLER_RIGHT",
73
+ CruiseControl = "CRUISE_CONTROL",
74
+ DecreaseExposure = "DECREASE_EXPOSURE",
75
+ DecreaseFocus = "FOCUS_DECREASE",
76
+ DisableMotors = "DISABLE_MOTORS",
77
+ ElevatingArmAscend = "ELEVATING_ARM_ASCEND",
78
+ ElevatingArmDescend = "ELEVATING_ARM_DESCEND",
79
+ IncreaseExposure = "EXPOSURE_INCREASE",
80
+ IncreaseFocus = "FOCUS_INCREASE",
81
+ MainLight = "MAIN_LIGHT",
82
+ PanLeft = "PAN_LEFT",
83
+ PanRight = "PAN_RIGHT",
84
+ Record = "RECORD",
85
+ ReelReset = "REEL_RESET",
86
+ Screenshot = "SCREENSHOT",
87
+ SwitchCamera = "SWITCH_CAMERA",
88
+ TiltDown = "TILT_DOWN",
89
+ TiltUp = "TILT_UP",
90
+ ToggleLasers = "TOGGLE_LASERS",
91
+ ZoomIn = "ZOOM_IN",
92
+ ZoomOut = "ZOOM_OUT"
93
+ }
94
+ /**
95
+ * All Vehicle Controls
96
+ */
97
+ export declare enum VehicleControl {
98
+ AltitudeLock = "ALTITUDE_LOCK",
99
+ AutoStabilization = "AUTO_STABILIZATION",
100
+ AuxLight = "AUX_LIGHT",
101
+ AuxLightBrightness = "AUX_LIGHT_BRIGHTNESS",
102
+ CameraHome = "CAMERA_HOME",
103
+ ChangeSonarFrequency = "CHANGE_SONAR_FREQUENCY",
104
+ CrawlerDrive = "CRAWLER_DRIVE",
105
+ CrawlerForward = "CRAWLER_FORWARD",
106
+ CrawlerLeft = "CRAWLER_LEFT",
107
+ CrawlerReverse = "CRAWLER_REVERSE",
108
+ CrawlerRight = "CRAWLER_RIGHT",
109
+ CrawlerSteer = "CRAWLER_STEER",
110
+ CruiseControl = "CRUISE_CONTROL",
111
+ DecreaseAuxLightBrightness = "DECREASE_AUX_LIGHT_BRIGHTNESS",
112
+ DecreaseExposure = "DECREASE_EXPOSURE",
113
+ DecreaseFocus = "FOCUS_DECREASE",
114
+ DecreaseLateralGain = "DECREASE_LATERAL_GAIN",
115
+ DecreaseMainLightBrightness = "DECREASE_MAIN_LIGHT_BRIGHTNESS",
116
+ DecreaseRollPitchGain = "DECREASE_ROLL_PITCH_GAIN",
117
+ DecreaseSonarGain = "DECREASE_SONAR_GAIN",
118
+ DecreaseSonarRange = "DECREASE_SONAR_RANGE",
119
+ DecreaseSpeedGain = "DECREASE_SPEED_GAIN",
120
+ DecreaseSteerGain = "DECREASE_STEER_GAIN",
121
+ DecreaseVerticalGain = "DECREASE_VERTICAL_GAIN",
122
+ DepthLock = "DEPTH_LOCK",
123
+ DisableMotors = "DISABLE_MOTORS",
124
+ DistanceLock = "DISTANCE_LOCK",
125
+ ElevatingArm = "ELEVATING_ARM",
126
+ ElevatingArmAscend = "ELEVATING_ARM_ASCEND",
127
+ ElevatingArmDescend = "ELEVATING_ARM_DESCEND",
128
+ Exposure = "EXPOSURE",
129
+ Focus = "FOCUS",
130
+ Fn = "FN",
131
+ Grabber = "GRABBER",
132
+ GrabberClose = "GRABBER_CLOSE",
133
+ GrabberOpen = "GRABBER_OPEN",
134
+ GrabberRotateLeft = "GRABBER_ROTATE_LEFT",
135
+ GrabberRotateRight = "GRABBER_ROTATE_RIGHT",
136
+ HeadingLock = "HEADING_LOCK",
137
+ IncreaseAuxLightBrightness = "INCREASE_AUX_LIGHT_BRIGHTNESS",
138
+ IncreaseExposure = "EXPOSURE_INCREASE",
139
+ IncreaseFocus = "FOCUS_INCREASE",
140
+ IncreaseLateralGain = "INCREASE_LATERAL_GAIN",
141
+ IncreaseMainLightBrightness = "INCREASE_MAIN_LIGHT_BRIGHTNESS",
142
+ IncreaseRollPitchGain = "INCREASE_ROLL_PITCH_GAIN",
143
+ IncreaseSonarGain = "INCREASE_SONAR_GAIN",
144
+ IncreaseSonarRange = "INCREASE_SONAR_RANGE",
145
+ IncreaseSpeedGain = "INCREASE_SPEED_GAIN",
146
+ IncreaseSteerGain = "INCREASE_STEER_GAIN",
147
+ IncreaseVerticalGain = "INCREASE_VERTICAL_GAIN",
148
+ Lateral = "LATERAL",
149
+ LateralLeft = "LATERAL_LEFT",
150
+ LateralGain = "LATERAL_GAIN",
151
+ LateralRight = "LATERAL_RIGHT",
152
+ MainLight = "MAIN_LIGHT",
153
+ MainLightBrightness = "MAIN_LIGHT_BRIGHTNESS",
154
+ Pan = "PAN",
155
+ PanLeft = "PAN_LEFT",
156
+ PanRight = "PAN_RIGHT",
157
+ Pitch = "PITCH",
158
+ PitchUp = "PITCH_UP",
159
+ PitchDown = "PITCH_DOWN",
160
+ PitchLock = "PITCH_LOCK",
161
+ PrecisionThrusters = "PRECISION_THRUSTERS",
162
+ Record = "RECORD",
163
+ ReelDisengage = "REEL_DISENGAGE",
164
+ ReelMotors = "REEL_MOTORS",
165
+ ReelReset = "REEL_RESET",
166
+ ResetPosture = "RESET_POSTURE",
167
+ ReelTetherIn = "REEL_TETHER_IN",
168
+ Roll = "ROLL",
169
+ RollLeft = "ROLL_LEFT",
170
+ RollPitchGain = "ROLL_PITCH_GAIN",
171
+ RollRight = "ROLL_RIGHT",
172
+ RotateGrabber = "ROTATE_GRABBER",
173
+ Screenshot = "SCREENSHOT",
174
+ SonarGain = "SONAR_GAIN",
175
+ SonarRange = "SONAR_RANGE",
176
+ SpeedGain = "SPEED_GAIN",
177
+ StationHolding = "STATION_HOLDING",
178
+ SteerGain = "STEER_GAIN",
179
+ SwitchCamera = "SWITCH_CAMERA",
180
+ ThrusterForward = "THRUSTER_FORWARD",
181
+ ThrusterReverse = "THRUSTER_REVERSE",
182
+ Thrusters = "THRUSTER",
183
+ Tilt = "TILT",
184
+ TiltDown = "TILT_DOWN",
185
+ TiltPlatform = "TILT_PLATFORM",
186
+ TiltPlatformDown = "TILT_PLATFORM_DOWN",
187
+ TiltPlatformUp = "TILT_PLATFORM_UP",
188
+ TiltUp = "TILT_UP",
189
+ ToggleLasers = "TOGGLE_LASERS",
190
+ Vertical = "VERTICAL",
191
+ VerticalDown = "VERTICAL_DOWN",
192
+ VerticalGain = "VERTICAL_GAIN",
193
+ VerticalUp = "VERTICAL_UP",
194
+ Yaw = "YAW",
195
+ YawLeft = "YAW_LEFT",
196
+ YawRight = "YAW_RIGHT",
197
+ Zoom = "ZOOM",
198
+ ZoomIn = "ZOOM_IN",
199
+ ZoomOut = "ZOOM_OUT"
200
+ }
201
+ /**
202
+ * Input Mapping Profile
203
+ */
204
+ export interface InputMappingProfileStore {
205
+ input_mapping_profile_id: number;
206
+ controller_group_id: number;
207
+ name: string;
208
+ created_at: Date;
209
+ modified_at: Date;
210
+ default: number;
211
+ selected: number;
212
+ inverted: number;
213
+ fn_profile_id?: number;
214
+ fnProfile?: boolean;
215
+ }
216
+ export interface ControllerGroupStore {
217
+ controller_group_id: number;
218
+ controller_id: string;
219
+ controller_group: string;
220
+ }
221
+ export interface VehicleControlsStore {
222
+ vehicle_control_id: number;
223
+ name: string;
224
+ created_at: Date;
225
+ }
226
+ export interface MappedInput {
227
+ input_key: string;
228
+ input_type: InputType;
229
+ control_type: ControlType;
230
+ controller_id: string;
231
+ fnProfile?: boolean;
232
+ }
233
+ export declare enum ControlType {
234
+ Vehicle = "VEHICLE",
235
+ Camera = "CAMERA",
236
+ /** @deprecated use `Miscellaneous` */
237
+ Reel = "REEL",
238
+ Lights = "LIGHTS",
239
+ IntelligentModes = "INTELLIGENT_MODES",
240
+ /** @deprecated use `IntelligentModes` */
241
+ IntelligentMode = "INTELLIGENT_MODE",
242
+ Tools = "TOOLS",
243
+ /** @deprecated use `Tools` */
244
+ Grabber = "GRABBER",
245
+ Sonar = "SONAR",
246
+ Menu = "MENU",
247
+ Miscellaneous = "MISCELLANEOUS"
248
+ }
249
+ export interface RawInput {
250
+ input_mapping_profile_id: number;
251
+ vehicle_control_id: number;
252
+ input_key: string;
253
+ input_type: InputType;
254
+ controller_id: string;
255
+ control_type: ControlType;
256
+ name: string;
257
+ control_name: VehicleControl;
258
+ created_at: string;
259
+ fn_profile_id?: number;
260
+ fnProfile?: boolean;
261
+ }
262
+ export interface InputMapStore {
263
+ input_mapping_profile_id: number;
264
+ vehicle_control_id: number;
265
+ input_key: string;
266
+ input_type: InputType;
267
+ controller_id: string;
268
+ name: string;
269
+ control_name: string;
270
+ created_at: string;
271
+ }
272
+ export declare enum InputType {
273
+ JoystickAxis = "AXIS",
274
+ JoystickButton = "BUTTON",
275
+ KeyboardKey = "KEY"
276
+ }
277
+ export interface CombinedCommand {
278
+ positiveCommand: VehicleControl;
279
+ negativeCommand: VehicleControl;
280
+ }
@@ -1,46 +1,46 @@
1
- import { MappedInput, DeadZoneProfiles } from "@types";
2
- export declare function checkKeyPress(keys: string[], keysPressed: Record<string, boolean>): boolean;
3
- export declare function getAxisValue(controllerID: string, index: number, gamepads: (Gamepad | null)[]): number;
4
- export declare function getButtonValue(controllerID: string, index: number, gamepads: (Gamepad | null)[]): boolean;
5
- export declare function decodeBooleanMapping(mapping: MappedInput | undefined, gamepads: (Gamepad | null)[], keysPressed: Record<string, boolean>, deadZones: DeadZoneProfiles): boolean;
6
- export declare function decodeRateMapping(mapping: MappedInput | undefined, gamepads: (Gamepad | null)[], keysPressed: Record<string, boolean>, deadZones: DeadZoneProfiles): number;
7
- export declare function assignUniqueIds(gamepads: (Gamepad | null)[]): Gamepad[];
8
- /**
9
- * Interprets the single D-pad axis value (axis 9) from the SteelSeries Bluetooth controller
10
- * and converts it into a virtual set of D-pad button states (up, down, left, right).
11
- *
12
- * Unlike standard controllers that report D-pad directions as individual buttons,
13
- * the Bluetooth version of the SteelSeries controller encodes D-pad input into a
14
- * single axis value. This axis represents 8 possible directional combinations:
15
- * - Cardinal: up (-1), down (~0.14), left (~0.71), right (~-0.43)
16
- * - Diagonals: up+left (1), up+right (~-0.71), down+right (~-0.14), down+left (~0.43)
17
- *
18
- * This function uses approximate matching to account for slight variations in
19
- * axis values due to analog behavior, and returns an object mapping each D-pad
20
- * direction to a boolean indicating whether it is active.
21
- *
22
- * This enables consistent D-pad handling across SteelSeries controllers, regardless
23
- * of whether they report the D-pad as buttons (dongle) or a single axis (Bluetooth).
24
- */
25
- export declare function getVirtualDPadStatesSteelSeriesBT(axisValue: number): {
26
- up: boolean;
27
- down: boolean;
28
- left: boolean;
29
- right: boolean;
30
- };
31
- /**
32
- * Converts the SteelSeries Bluetooth controller format to a normalized layout
33
- * matching the dongle version of the same controller.
34
- *
35
- * The Bluetooth version of the SteelSeries controller differs from the dongle version
36
- * in two key ways:
37
- * 1. The D-pad is reported as a single axis (axis 9) instead of separate buttons (12–15).
38
- * We use `getVirtualDPadStatesSteelSeriesBT()` to interpret axis 9 and inject
39
- * virtual D-pad buttons at the correct positions (indices 12–15).
40
- * 2. The axes and button layout are slightly different from the dongle version, so we
41
- * remap and reorder them to ensure consistency across both input types.
42
- *
43
- * This allows the rest of the application to treat both Bluetooth and dongle-based
44
- * SteelSeries controllers the same way, avoiding special-case handling elsewhere in the code.
45
- */
46
- export declare function convertSteelSeriesBTToBaseSteelSeries(gamepad: Gamepad): Gamepad;
1
+ import { MappedInput, DeadZoneProfiles } from "@types";
2
+ export declare function checkKeyPress(keys: string[], keysPressed: Record<string, boolean>): boolean;
3
+ export declare function getAxisValue(controllerID: string, index: number, gamepads: (Gamepad | null)[]): number;
4
+ export declare function getButtonValue(controllerID: string, index: number, gamepads: (Gamepad | null)[]): boolean;
5
+ export declare function decodeBooleanMapping(mapping: MappedInput | undefined, gamepads: (Gamepad | null)[], keysPressed: Record<string, boolean>, deadZones: DeadZoneProfiles): boolean;
6
+ export declare function decodeRateMapping(mapping: MappedInput | undefined, gamepads: (Gamepad | null)[], keysPressed: Record<string, boolean>, deadZones: DeadZoneProfiles): number;
7
+ export declare function assignUniqueIds(gamepads: (Gamepad | null)[]): Gamepad[];
8
+ /**
9
+ * Interprets the single D-pad axis value (axis 9) from the SteelSeries Bluetooth controller
10
+ * and converts it into a virtual set of D-pad button states (up, down, left, right).
11
+ *
12
+ * Unlike standard controllers that report D-pad directions as individual buttons,
13
+ * the Bluetooth version of the SteelSeries controller encodes D-pad input into a
14
+ * single axis value. This axis represents 8 possible directional combinations:
15
+ * - Cardinal: up (-1), down (~0.14), left (~0.71), right (~-0.43)
16
+ * - Diagonals: up+left (1), up+right (~-0.71), down+right (~-0.14), down+left (~0.43)
17
+ *
18
+ * This function uses approximate matching to account for slight variations in
19
+ * axis values due to analog behavior, and returns an object mapping each D-pad
20
+ * direction to a boolean indicating whether it is active.
21
+ *
22
+ * This enables consistent D-pad handling across SteelSeries controllers, regardless
23
+ * of whether they report the D-pad as buttons (dongle) or a single axis (Bluetooth).
24
+ */
25
+ export declare function getVirtualDPadStatesSteelSeriesBT(axisValue: number): {
26
+ up: boolean;
27
+ down: boolean;
28
+ left: boolean;
29
+ right: boolean;
30
+ };
31
+ /**
32
+ * Converts the SteelSeries Bluetooth controller format to a normalized layout
33
+ * matching the dongle version of the same controller.
34
+ *
35
+ * The Bluetooth version of the SteelSeries controller differs from the dongle version
36
+ * in two key ways:
37
+ * 1. The D-pad is reported as a single axis (axis 9) instead of separate buttons (12–15).
38
+ * We use `getVirtualDPadStatesSteelSeriesBT()` to interpret axis 9 and inject
39
+ * virtual D-pad buttons at the correct positions (indices 12–15).
40
+ * 2. The axes and button layout are slightly different from the dongle version, so we
41
+ * remap and reorder them to ensure consistency across both input types.
42
+ *
43
+ * This allows the rest of the application to treat both Bluetooth and dongle-based
44
+ * SteelSeries controllers the same way, avoiding special-case handling elsewhere in the code.
45
+ */
46
+ export declare function convertSteelSeriesBTToBaseSteelSeries(gamepad: Gamepad): Gamepad;
@@ -1 +1 @@
1
- export * from "./gamepadHelper";
1
+ export * from "./gamepadHelper";