Skip to content

Commit d87287f

Browse files
committed
Added stuff to prepClimb, but IDK if it's right or not
1 parent c8965d7 commit d87287f

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public RobotContainer() {
178178
configureTelemetry();
179179
configureDriverBindings();
180180
configureOperatorBindings();
181-
// configureTestOperatorBindings();
181+
configureTestOperatorBindings();
182182
configurePitDashboard();
183183
}
184184

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
package frc.robot.commands.climb;
22

3+
import frc.robot.subsystems.robotState.RobotStateSubsystem;
4+
import frc.robot.subsystems.robotState.RobotStateSubsystem.RobotStates;
35
import 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
}

src/main/java/frc/robot/constants/ClimbConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)