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

Commit

Permalink
climber servo fix (#16)
Browse files Browse the repository at this point in the history
The servo "remembers" its instructions, even after the bot is rebooted.  So in case its latest instructions were to go to release position, then the bot was turned off, then the servo was manually set to its rest position, it doesn't boot up and go back to its release position.
  • Loading branch information
thetaspirit authored Sep 14, 2021
1 parent b975c53 commit 401b048
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/subsystems/ClimberSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ public ClimberSubsystem(ClimberHardware climberHardware) {
m_servoMotor = climberHardware.servoMotor;
m_ratchetServo = climberHardware.ratchetServo;
m_winchMotor = climberHardware.winchMotor;


// Set the servo to "return/rest" position at the very beginning.
m_servoMotor.set(Constants.ClimberConstants.SERVO_RETURN_POSITION);
}




/**
* @return the angle of the servo that releases the climber.
*/
Expand Down

0 comments on commit 401b048

Please sign in to comment.