-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Climber API for moving climber between setpoint positions
- Loading branch information
Showing
3 changed files
with
292 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/frc/robot/commands/climber/ClimberSetpointCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package frc.robot.commands.climber; | ||
|
||
import edu.wpi.first.wpilibj.XboxController; | ||
import edu.wpi.first.wpilibj2.command.CommandBase; | ||
import frc.robot.subsystems.Climber; | ||
|
||
public class ClimberSetpointCommand extends CommandBase { | ||
|
||
private static final double MAX_SPEED = 0.10; | ||
|
||
private final Climber climber; | ||
private final XboxController controller; | ||
|
||
private boolean shouldHoldPositionWhenStopped = true; | ||
|
||
public ClimberSetpointCommand(XboxController controller, Climber climber) { | ||
this.climber = climber; | ||
this.controller = controller; | ||
|
||
addRequirements(climber); | ||
} | ||
|
||
} |
Oops, something went wrong.