File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
subsystems/gantry/commands Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2323 "robotTrackwidth" : 0.546 ,
2424 "driveWheelRadius" : 0.051 ,
2525 "driveGearing" : 7.733 ,
26- "maxDriveSpeed" : 4.5 ,
26+ "maxDriveSpeed" : 4.25 ,
2727 "driveMotorType" : " vortex" ,
2828 "driveCurrentLimit" : 45.0 ,
2929 "wheelCOF" : 1.01 ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public static class DriveConstants {
141141 public static final double driveGearRatio = 116.0 / 15.0 ;
142142 public static final double steerGearRatio = ((480.0 / 11.0 )) * 1.0166667 * 0.99790377777778 ;
143143
144- public static final double maxSpeed = 4.5 ;
144+ public static final double maxSpeed = 4.25 ;
145145 public static final double maxNorm =
146146 DriveSubsystem .computeMaxNorm (DriveConstants .positions , new Translation2d ());
147147 public static final double maxOmega = (maxSpeed / maxNorm );
@@ -402,7 +402,7 @@ public static class GantryConstants {
402402 public static final double pulleyRadius =
403403 Units .inchesToMeters (0.5 ) * 1.13278894472 * 0.60103626943 * 1.58904109589 * 1.03571428571 ;
404404 // left -> right limit
405- public static final Limits gantryLimits = new Limits (0.01 , 0.36 + Units .inchesToMeters (1 ));
405+ public static final Limits gantryLimits = new Limits (0.01 , 0.36 + Units .inchesToMeters (4 ));
406406 public static final double gantryLimitCenter = 0.223 ; // 0.198
407407 public static final double gantryPadding = 0.02 ;
408408 public static final int gantryLimitSwitchDIOPort = new RobotSwitch <Integer >(4 ).get ();
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ public static final MAXMotionConfig constructMaxMotionPos(PIDConstants constant)
9191 }
9292
9393 public static final PIDConstants drivePID = new PIDConstants (0.17189 , 0.0 , 0 );
94- public static final FeedForwardConstants driveFF = new FeedForwardConstants (0.12506 , 2 , 0.27879 );
94+ public static final FeedForwardConstants driveFF =
95+ new FeedForwardConstants (0.12506 , 2.3 , 0.27879 );
9596
9697 public static final PIDConstants steerPID = new PIDConstants (0.725 , 0.0 , 0.005 );
9798
@@ -125,7 +126,7 @@ public static final MAXMotionConfig constructMaxMotionPos(PIDConstants constant)
125126
126127 public static final PIDConstants driveAntiTip = new PIDConstants (1 , 0 , 0 );
127128
128- public static final PIDConstants localTagAlign = new PIDConstants (0.8 , 0.000 , 0.0005 );
129+ public static final PIDConstants localTagAlign = new PIDConstants (0.9 , 0.000 , 0.0005 );
129130 public static final PIDConstants localTagAlignVelocity = new PIDConstants (0.25 , 0 , 0 );
130131 // public static final PIDConstants localTagAlignY = new PIDConstants(0.25, 0, 0);
131132 public static final PIDConstants localAnglePid = new PIDConstants (0.5 , 0.001 , 0.001 );
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public double getSetpoint(Supplier<CoralPreset> coralPreset) {
122122 }
123123 return coralPreset .get ().getGantrySetpoint (true ) == GantrySetpoint .RIGHT
124124 ? GantryConstants .gantryLimits .low + GantryConstants .gantryPadding
125- : GantryConstants . gantryLimits . high - GantryConstants . gantryPadding ;
125+ : 0.392 ;
126126 }
127127
128128 public double getSetpointOdometry (
You can’t perform that action at this time.
0 commit comments