Skip to content

Commit b6fe362

Browse files
small change
1 parent f721f61 commit b6fe362

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/frc/robot/subsystems/elevator/ElevatorIO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ default double getVelocity(){
4141
return 0.0;
4242
}
4343

44+
// Calculates applied motor voltage
4445
default double getAppliedVoltage(){
4546
return 0.0;
4647
}

src/main/java/frc/robot/subsystems/elevator/ElevatorIOSparkMax

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class ElevatorIOSparkMax implements ElevatorIO {
2323
private SparkMax leftMotor;
2424
// right follows left
2525
private SparkMax rightMotor;
26-
private RelativeEncoder leftEncoder;
26+
private RelativeEncoder leftEncoder;
2727

2828

2929
public class ElevatorIOSparkMax {
@@ -127,7 +127,10 @@ public class ElevatorIOSparkMax {
127127
setVoltage(math.util.clamp(pidOutput, -ElevatorConstants.MAX_VOLTAGE, ElevatorConstants.MAX_VOLTAGE));
128128
}
129129

130-
130+
@Override
131+
public boolean atSetpoint() {
132+
return pidController.atSetpoint();
133+
}
131134

132135
}
133136
}

0 commit comments

Comments
 (0)