Simple Auto Example

Note

It’s best to download the example and follow along. The example project can be donwloaded here.

Sometimes getting into something new can be hard. With this example as a stepping stone it will hopefully become more clear to most.

1 - Constants.java

Constants class

2 - DriveTrain.java

DriveTrain subsystem class

3 - AutoCommand.java

Auto command wrapper for sequential autos

4 - SimpleDrive.java

SimpleDrive Command class that calls the drivetrain subsystem

5 - DriveMotor.java

Acutal command that will drive the motor

6 - RobotContainer.java

Robot Container of instances

7 - Robot.java

Main methods of project

8 - Deploying and Running Autonomous

Deploy code to the robot and run the code using Control Station.