Skip to content

Commit

Permalink
Rename zRotation to omegaRotation and made getter methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorC08 committed Sep 21, 2024
1 parent ad4d481 commit d658591
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 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 arcadeDrive(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 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 d658591

Please sign in to comment.