Custom RobotBuilder Structure Classes

My team was hoping to use the RobotBuilder this year to manage the robot structure and easy some of the burden off our new programmers back (some of which barley know any Java).

However the problem is that we don’t use the standard Joystick, we use an Xbox controller, and to make things easier we made an XboxJoystick class for use with it, and that lead to finding out there isn’t a way to add custom classes into the RobotBuilder structure.

I would prefer to continue using our XboxJoystick class over referencing everything through the getRawAxis/Button methods of the Joystick class and use the robotbuilder as well.

If not then we can always just drop one or the other, no problem, but a solution would be favorable.

Assuming that your XboxJoystick extends Joystick, you can use RobotBuilder to generate the base code using Joysticks, then change the Joystick objects to XBoxJoystick, and remove the RobotBuilder comment blocks around the objects. This will cause RobotBuilder to no longer update those blocks.

What types of things do you use getrawbutton for, rather then the JoystickButton class?

1 Like