@@ -22,9 +22,9 @@ public class Climber extends Subsystem {
2222 private DoubleSolenoid pistons ;
2323
2424 final private double minTilt = 0 ; // In degrees // TODO: Update wtih actual number
25- final private double minDist = 13 ; // In inches // TODO: Update with actual number
25+ final private double minDist = 20 ; // In inches // TODO: Update with actual number
2626 final private double maxTilt = 30 ; // In degrees // TODO: Update with actual number
27- final private double maxDist = 15 ; // In inches // TODO: Update with actual number
27+ final private double maxDist = 24 ; // In inches // TODO: Update with actual number
2828 final private double slipTolerance = 0.5 ; // In inches // TODO: Update with actual number;
2929
3030 public Climber (VictorSP motor , Encoder enc , AHRS ahrs , DoubleSolenoid pistons ) {
@@ -33,7 +33,7 @@ public Climber(VictorSP motor, Encoder enc, AHRS ahrs, DoubleSolenoid pistons) {
3333 this .ahrs = ahrs ;
3434 this .pistons = pistons ;
3535
36- double pulseFraction = 1.0 / 256 ;
36+ double pulseFraction = 1.0 / 256 ;
3737 double pitchDiameter = 1.790 ; // https://www.vexrobotics.com/35-sprockets.html#Drawing
3838 enc .setDistancePerPulse (pulseFraction * Math .PI * pitchDiameter );
3939 enc .reset ();
@@ -51,7 +51,7 @@ public void stopClimber() {
5151 motor .stopMotor ();
5252 }
5353
54- //We are erring on the side of changing directions too much
54+ // We are erring on the side of changing directions too much
5555 public boolean needToClimb () {
5656 double angle = Math .atan2 (ahrs .getRawAccelZ (), ahrs .getRawAccelX ());
5757 angle *= 180 / Math .PI ;
0 commit comments