File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public RobotContainer() {
178178 configureTelemetry ();
179179 configureDriverBindings ();
180180 configureOperatorBindings ();
181- // configureTestOperatorBindings();
181+ configureTestOperatorBindings ();
182182 configurePitDashboard ();
183183 }
184184
Original file line number Diff line number Diff line change 11package frc .robot .commands .climb ;
22
3+ import frc .robot .subsystems .robotState .RobotStateSubsystem ;
4+ import frc .robot .subsystems .robotState .RobotStateSubsystem .RobotStates ;
35import frc .robot .subsystems .climb .ClimbSubsystem ;
6+ import edu .wpi .first .wpilibj2 .command .Command ;
47
5- public class PrepClimb {
8+ public class PrepClimb extends Command {
69
10+ RobotStateSubsystem robotStateSubsystem ;
711 ClimbSubsystem climbSubsystem ;
8- /*
12+
13+ public PrepClimb (ClimbSubsystem climbSubsystem , RobotStateSubsystem robotStateSubsystem ) {
14+ this .climbSubsystem = climbSubsystem ;
15+ this .robotStateSubsystem = robotStateSubsystem ;
16+ }
17+
918 @ Override
1019 public void initialize () {
11-
20+ robotStateSubsystem . toClimb ();
1221 }
1322
1423 @ Override
15- public void isFinished() {
16-
24+ public boolean isFinished () {
25+ return ( robotStateSubsystem . getState () != RobotStates . PREP_CLIMB );
1726 }
18- */
1927
2028}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public class ClimbConstants {
4242 public static final double kRatchetDisengagedPos = 1.0 ;
4343
4444 // Climb positions
45- // public static final Angle kClimbCagePos = Rotations.of(); // will test
45+ // public static final Angle kClimbCagePos = Rotations.of();
4646 public static final Double kClimbRatchedEngage = -0.12 ;
4747 public static final double kFullyClimbed = kArmMaxFwd ;
4848 public static final double kClimbOpenLoopSpeed = 4.0 ;
You can’t perform that action at this time.
0 commit comments