Skip to content

Commit a5a42f7

Browse files
committed
Changed a few constants and stuff after testing
1 parent 3f5bd10 commit a5a42f7

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package frc.robot.commands.climb;
2+
3+
import frc.robot.subsystems.climb.ClimbSubsystem;
4+
5+
public class Climb {
6+
7+
ClimbSubsystem climbSubsystem;
8+
/*
9+
@Override
10+
public void initialize() {
11+
12+
}
13+
14+
@Override
15+
public void isFinished() {
16+
17+
}
18+
*/
19+
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package frc.robot.commands.climb;
2+
3+
import frc.robot.subsystems.climb.ClimbSubsystem;
4+
5+
public class PrepClimb {
6+
7+
ClimbSubsystem climbSubsystem;
8+
/*
9+
@Override
10+
public void initialize() {
11+
12+
}
13+
14+
@Override
15+
public void isFinished() {
16+
17+
}
18+
*/
19+
20+
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public class ClimbConstants {
2525
public static int kPivotArmFrontFxId = 45;
2626
// public static int kPivotArmFollowFxId = 46;
2727
public static int kCANcoderId = 46;
28-
public static int kDeployServoId = 1; // the servo to release the pin
28+
public static int kDeployServoId = 1;
2929
public static int kRatchetServoId = 2;
3030
public static int kCageAlignedDIOId = 11;
3131

32-
public static final double kPivotArmCloseEnough = 0.01; // FIXME
33-
public static final double kArmMaxFwd = 0.12;
34-
public static final double kArmMaxRev = -0.14;
32+
public static final double kPivotArmCloseEnough = 0.01; // fixme
33+
public static final double kArmMaxFwd = 0;
34+
public static final double kArmMaxRev = -0.29;
3535
public static final Angle kArmZeroTicks = Degrees.of(1530);
3636

3737
// Deploy Servo
@@ -43,8 +43,8 @@ public class ClimbConstants {
4343
public static final double kRatchetDisengagedPos = 1.0;
4444

4545
// Climb positions
46-
public static final Angle kClimbCagePos = Rotations.of(4); // fixme
47-
public static final Double kClimbRatchedEngage = 0.0;
46+
//public static final Angle kClimbCagePos = Rotations.of(); // will test
47+
public static final Double kClimbRatchedEngage = -0.12;
4848
public static final double kFullyClimbed = kArmMaxFwd;
4949
public static final double kClimbOpenLoopSpeed = 4.0;
5050

src/main/java/frc/robot/subsystems/climb/ClimbSubsystem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public void periodic() {
152152
if (isFinished()) {
153153
io.setCoastMode(true);
154154
setState(ClimbState.CLIMBED);
155+
io.setPercent(0.0);
155156
}
156157
break;
157158
default:

0 commit comments

Comments
 (0)