Skip to content

Commit

Permalink
remove some boiler plate stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 committed Oct 6, 2024
1 parent b9c48a7 commit 8a793ad
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 45 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import frc.robot.Robot.RobotRunType;
import frc.robot.subsystems.drive.Drivetrain;
import frc.robot.subsystems.drive.DrivetrainIO;
import frc.robot.subsystems.drive.DrivetrainVictorSP;
import frc.robot.subsystems.drive.DrivetrainReal;

/**
* This class is where the bulk of the robot should be declared. Since Command-based is a
Expand All @@ -38,7 +38,7 @@ public RobotContainer(RobotRunType runtimeType) {
autoChooser.setDefaultOption("Wait 1 Second", "wait");
switch (runtimeType) {
case kReal:
drivetrain = new Drivetrain(new DrivetrainVictorSP());
drivetrain = new Drivetrain(new DrivetrainReal());
break;
case kSimulation:
// drivetrain = new Drivetrain(new DrivetrainSim() {});
Expand Down
26 changes: 26 additions & 0 deletions src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package frc.robot.subsystems.drive;

import edu.wpi.first.math.geometry.Rotation2d;

/**
* DrivetrainReal
*/
public class DrivetrainReal implements DrivetrainIO {


/**
* Drivetrain Real
*/
public DrivetrainReal() {}

@Override
public void updateInputs(DrivetrainIOInputs inputs) {
inputs.gyroYaw = Rotation2d.fromDegrees(0);
}

/**
* Drive Voltage
*/
public void setDriveVoltage(double lvolts, double rvolts) {}

}
43 changes: 0 additions & 43 deletions src/main/java/frc/robot/subsystems/drive/DrivetrainVictorSP.java

This file was deleted.

0 comments on commit 8a793ad

Please sign in to comment.