Issaquah Robotics Society

Programming resources for FIRST Robotics team 1318

ButtonMap

The ButtonMap contains the mapping of User Input Device buttons and axes to the corresponding digital, analog and macro operations. The Driver class is in charge of reading from the joysticks and button pads during teleop mode, and it uses the ButtonMap schemas to translate joystick actions into DigitalOperations, AnalogOperations, and MacroOperations.

Shifts are used to enhance the driver’s control options by allowing one button to have multiple options depending on if the shift button is pressed or not.

OperationContexts are used to enhance the driver’s control options by allowing one button to have multiple options depending on the context the robot is in.

To create your own ButtonMap, reference the Adding Operations, the Adding Macros, and the Updating Button Map pages to guide you.