-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoystick-defaults.json
More file actions
104 lines (98 loc) · 4.34 KB
/
Copy pathjoystick-defaults.json
File metadata and controls
104 lines (98 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"_comment": [
"SATU-SATUNYA sumber kebenaran untuk default mapping joystick.",
"Dibaca server.js lewat require() dan browser lewat fetch() di joystick-state.js,",
"jadi tidak ada lagi tabel default yang disalin ganda dan bisa hanyut.",
"",
"Profil default disusun untuk Logitech F310 pada mode X-Input, yang dilaporkan",
"Chrome sebagai 'standard mapping': 4 axis (0=LX, 1=LY, 2=RX, 3=RY) dan 17 button.",
"LT/RT BUKAN axis — keduanya button analog 6 dan 7, karena itu grip analog",
"memakai sumber virtual 'triggers' (nilai = RT - LT).",
"",
"Konvensi min/max: min > max berarti axis dibalik (mapAxisValue). Sumbu Y",
"gamepad bernilai negatif saat didorong ke ATAS, jadi heave & surge dibalik",
"supaya dorong-ke-atas = naik / maju."
],
"actions": [
"no_function",
"arm",
"disarm",
"e_stop",
"mode_manual",
"mode_stabilize",
"mode_depth_hold",
"grip_open",
"grip_close",
"grip_neutral",
"light_toggle",
"gain_inc",
"gain_dec"
],
"actionMigration": {
"actuator1_inc": "grip_close",
"actuator1_dec": "grip_open",
"mount_tilt_up": "no_function",
"mount_tilt_down": "no_function",
"mount_center": "no_function",
"lights_brighter": "light_toggle",
"lights_dimmer": "no_function",
"input_hold_set": "no_function"
},
"profile": {
"enabled": true,
"shiftButton": 10,
"tuning": {
"deadzone": 0.12,
"expo": 0.35,
"slewPerSec": 4000,
"gainIndex": 1
},
"axisConfig": [
{ "input": "axis 0", "assigned": "Axis R", "min": -1000, "max": 1000, "direction": "↔" },
{ "input": "axis 1", "assigned": "Axis Z", "min": 1000, "max": -1000, "direction": "↕" },
{ "input": "axis 2", "assigned": "Axis Y", "min": -1000, "max": 1000, "direction": "↔" },
{ "input": "axis 3", "assigned": "Axis X", "min": 1000, "max": -1000, "direction": "↕" },
{ "input": "triggers", "assigned": "Grip", "min": -1000, "max": 1000, "direction": "↕" }
],
"buttonConfig": {
"regular": [
{ "action": "grip_close", "button": 0, "mode": "toggle" },
{ "action": "grip_open", "button": 1, "mode": "toggle" },
{ "action": "grip_neutral", "button": 2, "mode": "toggle" },
{ "action": "no_function", "button": 3, "mode": "toggle" },
{ "action": "gain_dec", "button": 4, "mode": "toggle" },
{ "action": "gain_inc", "button": 5, "mode": "toggle" },
{ "action": "no_function", "button": 6, "mode": "toggle" },
{ "action": "no_function", "button": 7, "mode": "toggle" },
{ "action": "e_stop", "button": 8, "mode": "toggle" },
{ "action": "arm", "button": 9, "mode": "toggle" },
{ "action": "no_function", "button": 10, "mode": "toggle" },
{ "action": "no_function", "button": 11, "mode": "toggle" },
{ "action": "mode_depth_hold", "button": 12, "mode": "toggle" },
{ "action": "mode_manual", "button": 13, "mode": "toggle" },
{ "action": "mode_stabilize", "button": 14, "mode": "toggle" },
{ "action": "light_toggle", "button": 15, "mode": "toggle" },
{ "action": "no_function", "button": 16, "mode": "toggle" }
],
"shift": [
{ "action": "no_function", "button": 0, "mode": "toggle" },
{ "action": "no_function", "button": 1, "mode": "toggle" },
{ "action": "no_function", "button": 2, "mode": "toggle" },
{ "action": "no_function", "button": 3, "mode": "toggle" },
{ "action": "no_function", "button": 4, "mode": "toggle" },
{ "action": "no_function", "button": 5, "mode": "toggle" },
{ "action": "no_function", "button": 6, "mode": "toggle" },
{ "action": "no_function", "button": 7, "mode": "toggle" },
{ "action": "e_stop", "button": 8, "mode": "toggle" },
{ "action": "disarm", "button": 9, "mode": "toggle" },
{ "action": "no_function", "button": 10, "mode": "toggle" },
{ "action": "no_function", "button": 11, "mode": "toggle" },
{ "action": "no_function", "button": 12, "mode": "toggle" },
{ "action": "no_function", "button": 13, "mode": "toggle" },
{ "action": "no_function", "button": 14, "mode": "toggle" },
{ "action": "no_function", "button": 15, "mode": "toggle" },
{ "action": "no_function", "button": 16, "mode": "toggle" }
]
}
}
}