Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit bff95a8

Browse files
authored
Merge pull request #70 from Gabe-Mitnick/controller-docs
Add docs folder containing controller documentation
2 parents 38793c8 + 44b530b commit bff95a8

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/OI.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
* interface to the commands and command groups that allow control of the robot.
2727
*/
2828
public class OI {
29+
/*
30+
* WHENEVER YOU ADD OR CHANGE WHAT A BUTTON OR JOYSTICK DOES, indicate in
31+
* /docs/controllers.txt to keep that reference up to date.
32+
*/
2933

3034
public Joystick leftJoy;
3135
private JoystickButton shiftLowGearButton;

docs/controllers.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
controller indices
2+
manipulator
3+
buttons
4+
1 A
5+
2 B
6+
3 X
7+
4 Y
8+
5 LB
9+
6 RB
10+
7 back
11+
8 start
12+
9 N/a
13+
10 N/a
14+
press mode to toggle mode light
15+
axes
16+
0 left thumbstick X axis (D-pad if mode light on)
17+
1 left thumbstick Y axis (D-pad if mode light on)
18+
2 left trigger
19+
3 right trigger
20+
4 right thumbstick X axis
21+
5 right thumbstick Y axis
22+
mode light off:
23+
POV
24+
D-pad (left joystick if mode light on)
25+
rumble
26+
fake news
27+
left joystick
28+
buttons
29+
1
30+
2
31+
3
32+
4
33+
5
34+
6
35+
7
36+
8
37+
9
38+
10
39+
11
40+
axes
41+
0 X axis
42+
1 Y axis (forward is negative)
43+
2 Z axis (knob at base)
44+
right joystick
45+
buttons
46+
1
47+
2
48+
3
49+
4
50+
5
51+
6
52+
7
53+
8
54+
9
55+
10
56+
11
57+
axes
58+
0 X axis
59+
1 Y axis (forward is negative)
60+
2 Z axis (knob at base)

0 commit comments

Comments
 (0)