Four buttons, plus a 12-position switch. Two TBD slots, likely to be switches at some point? Maybe? Designed for selecting what we want the robot to do next. Critically, not for saying how the robot does something, that's an XBOX controller.
- Screw Terminal Headers
- Smaller screw terminal headers
- buttons with prewired leads
- 12-position switch
- Arduino Micro
- USB C panel connector
- Chicken head knobs, in red.
- Various lengths of wire and solder from chris's house.
3d printed. Onshape model here.
Designed to bolt to a driver station or something like that.
See GenericHID
- https://docs.wpilib.org/en/stable/docs/software/basic-programming/joystick.html#button-usage
Use getRawButton()
to get each state.
18 buttons are enumerated.
The chickenhead knob may be thought of as 12 buttons, only one of which is pressed at a time (generally)
Each pushbutton is either pressed or not pressed.
Each switch (future) is either on or off.
Which of the 12 digital inputs goes with each physical position depends on how you put the knob on.
Wired so pin numbers increase counterclockwise.
Chris suspects this will be a problem at some point.
Buttons are index'ed like this:
Again, which button goes with which position on the chickenhead knob depends on how you mount the chickenhead knob.
Indices increase counterclockwise.