frc538 / 2020-infinite-recharge

Robot code for FRC Team 538.
0 stars 0 forks source link

Create the Swerve Drive Subsystem. #5

Closed drewwhis closed 4 years ago

drewwhis commented 4 years ago

This depends on having the Swerve Drive Module defined, so we can't do much work on this until #4 is done.

drewwhis commented 4 years ago

When we go to define the subsystem, there are a few things we want to do.

  1. Define a class for the subsystem. In this case, we need to create 'SwerveDriveSubsystem.java' in the subsystems directory.
  2. After the class is defined, we need to create an instance in the RobotContainer. In this case, we go into the RobotContainer.java file and add a member variable (private SwerveDriveSubsystem mDriveSubsystem = new SwerveDriveSubsystem(); will do the trick).

This same process follows for any subsystem we create (#22, #19, #15, #13). The only difference will be which subsystem is being created (and if the subsystem requires any parameters, which ours probably won't).

drewwhis commented 4 years ago

We got this handled on Saturday (between Maison and Breanna).