-
Notifications
You must be signed in to change notification settings - Fork 0
Core Classes
The class Robot initializes all of the subsystems and the OI. This class has methods following the FRC game lifecycle and optional methods for Test and Practice mode which can be enabled from the FRC Driver Station (DS). The chosen autonomous command is returned by a SendableChooser from the Java SmartDashboard.
OI stands for Operator Interface. This file is where the joystick(s) and their buttons are initialized. For our purpose, the joysticks and their buttons are stored in their respective arrays. The class OI has five helper functions: getAxis(), getBtn(), setRumble(), setAllRumble(), and isXbox().
The class RobotMap houses all of the necessary constants (i.e. roboRIO & PCM ports, joystick axis & buttons). This class should only directly be called by Robot.java or the subsystems.