Skip to content

Commit

Permalink
constant climb speed
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalApple authored and penguin212 committed Jan 31, 2024
1 parent f823890 commit 70e4020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/subsystems/climb/ClimbArm.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public void update() {
if (isAtExtension())
winchMotor.set(0);
else
winchMotor.set(MathUtil.clamp(desiredExtension - extensionEncoder.getPosition() , -MAX_WINCH_POWER, MAX_WINCH_POWER));
winchMotor.set(desiredExtension > extensionEncoder.getPosition()
? MAX_WINCH_POWER : -MAX_WINCH_POWER);

}

Expand Down

0 comments on commit 70e4020

Please sign in to comment.