Skip to content

Commit

Permalink
Fixed requested edits
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburger73 committed Feb 13, 2025
1 parent 8e5f977 commit e3466b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/ArmRotate.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public Command moveTo(ArmRotatePresets level) {
public Command zero() {
return runSafe(() -> {
getData().motor.setpoint = ZEROING_SPEED;
}).until(() -> getMap().motor.errored()).andThen(resetCmd());
}).until(() -> getMap().motor.validate()).andThen(resetCmd());
}

public Command moveToZero() {
return startSafe(() -> {
getData().motor.setpoint = ZEROING_SPEED;
preset = ArmRotatePresets.OFF;
}).until(() -> {
return getArmAngle() < getMap().armRotatePreset.getValue(ArmRotatePresets.STOW);
return getArmAngle() > getMap().armRotatePreset.getValue(ArmRotatePresets.STOW);
});
}

Expand Down

0 comments on commit e3466b2

Please sign in to comment.