Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Apr 6, 2022
1 parent 6c14354 commit 4833ed9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
9 changes: 0 additions & 9 deletions src/main/java/frc/robot/drive/Drivebase.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public Drivebase(
default:
throw new UnknownTargetRobotException();
}

zeroEncoders();
}

@Override
Expand Down Expand Up @@ -73,11 +71,4 @@ public void setWheelSpeeds(MecanumDriveWheelSpeeds wheelSpeeds) {
public void stopMotors() {
setWheelSpeeds(new MecanumDriveWheelSpeeds());
}

public void zeroEncoders() {
frontLeft.zeroEncoder();
frontRight.zeroEncoder();
rearLeft.zeroEncoder();
rearRight.zeroEncoder();
}
}
5 changes: 0 additions & 5 deletions src/main/java/frc/robot/drive/Wheel.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,4 @@ public double getVelocity() {
public double getDistance() {
return WHEEL_CONVERTER.radiansToDistance(inputs.positionRadians);
}

/** Zeroes the encoder position. */
public void zeroEncoder() {
io.zeroEncoder();
}
}
3 changes: 0 additions & 3 deletions src/main/java/frc/robot/drive/WheelIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,4 @@ public void fromLog(LogTable table) {

/** Sets the output voltage of the wheel's motor. */
public void setVoltage(double outputVolts);

/** Zeroes the encoder position. */
public void zeroEncoder();
}
5 changes: 0 additions & 5 deletions src/main/java/frc/robot/drive/WheelIOFalcon500.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,4 @@ public void updateInputs(Inputs inputs) {
public void setVoltage(double outputVolts) {
motor.setVoltage(outputVolts);
}

@Override
public void zeroEncoder() {
motor.setSelectedSensorPosition(0);
}
}
5 changes: 0 additions & 5 deletions src/main/java/frc/robot/drive/WheelIOReplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ public void updateInputs(Inputs inputs) {
public void setVoltage(double outputVolts) {
// Intentionally left empty
}

@Override
public void zeroEncoder() {
// Intentionally left empty
}
}

0 comments on commit 4833ed9

Please sign in to comment.