Update README.md

This commit is contained in:
Titan Robotics Club
2024-06-01 00:20:50 -07:00
committed by GitHub
parent a3c4cbab5b
commit 824c9f792c

View File

@ -34,14 +34,14 @@ Once the drive base is fully functional, the next step is to create subsystems f
1. Create a Java class in the subsystems folder (e.g. Intake.java). 1. Create a Java class in the subsystems folder (e.g. Intake.java).
2. In Robot.java, add a public class variable in the Subsystem section: 2. In Robot.java, add a public class variable in the Subsystem section:
``` ```
public Intake intake; public Intake intake;
``` ```
4. In the constructor of Robot.java, under the Subsystem section, add code to create and initialize the subsystem: 4. In the constructor of Robot.java, under the Subsystem section, add code to create and initialize the subsystem:
``` ```
if (RobotParams.Preferences.useIntake) if (RobotParams.Preferences.useIntake)
{ {
intake = new Intake(RobotParams.HWNAME_INTAKE, this); intake = new Intake(RobotParams.HWNAME_INTAKE, this);
} }
``` ```
## Library Features ## Library Features