public void setup() { button1 = new InternalButton(); button2 = new InternalButton(); }
public OI() { xbox = new XboxController(RobotMap.xboxController); toggleDrive = new JoystickButton(xbox, RobotMap.toggleDrive); toggleDrive.whenPressed(new ToggleDrive()); togglePolar = new InternalButton(); SmartDashboard.putData("Drive Mode", toggleDrive); togglePolar.whenPressed(new ToggleDrive()); }