Operator Interface

What is it?

The OI is the operator interface. It connects the buttons and joysticks that the operator uses to the commands which they should trigger. The buttons in the OI make it really easy to change the functions that each button performs as you test the code and add new commands to make the operators job easier.

What types of buttons are there?

There are a number of buttons that can be used to trigger commands.

Button Class
JoystickButton A button on a joystick. This is probably the most useful type of button.
InternalButton A virtual button that can be triggered in code or put on the SmartDashboard.
NetworkButton A button that is triggered by a value on a network table. This is useful for allowing code not on the roboRIO to trigger commands.
Custom Custom buttons can be created by subclassing Button and overriding the isPressed method.