Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinEC2 committed Sep 21, 2024
2 parents d653f20 + d658591 commit fb22926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ public void periodic() {
// GeneralUtil.logSubsystem(this, "Shooter/Feeder");
}

public void fullStop() {
private void fullStop() {
io.stopDriveTrain();
}

public void driveForwardFullSpeed() {
private void driveForwardFullSpeed() {
io.arcadeDrive(1.0, 0);
}

public void driveCustom(double speed, double zRotation) {
io.arcadeDrive(speed, zRotation);
private void arcadeDrive(double speed, double omegaRotation) {
io.arcadeDrive(speed, omegaRotation);
}

public Command joystickDrive(Supplier<Double> xInput, Supplier<Double> omegaRotationInput) {
Expand All @@ -39,7 +39,7 @@ public Command joystickDrive(Supplier<Double> xInput, Supplier<Double> omegaRota
}

double omegaRotation = omegaRotationInput.get();
driveCustom(xSpeed, omegaRotation);
arcadeDrive(xSpeed, omegaRotation);
})
.withName("joystick drive");
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/drive/DriveIOReal.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void stopDriveTrain() {
driveTrain.stopMotor();
}

public void arcadeDrive(double xSpeed, double zRotation) {
driveTrain.arcadeDrive(xSpeed, zRotation);
public void arcadeDrive(double xSpeed, double omegaRotation) {
driveTrain.arcadeDrive(xSpeed, omegaRotation);
}
}

0 comments on commit fb22926

Please sign in to comment.