Skip to content

Commit 8b36690

Browse files
retune db
1 parent 53f5389 commit 8b36690

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/main/deploy/pathplanner/paths/Odom Test.path

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"pointTowardsZones": [],
3434
"eventMarkers": [],
3535
"globalConstraints": {
36-
"maxVelocity": 1.0,
37-
"maxAcceleration": 1.0,
36+
"maxVelocity": 3.0,
37+
"maxAcceleration": 3.0,
3838
"maxAngularVelocity": 540.0,
3939
"maxAngularAcceleration": 720.0,
4040
"nominalVoltage": 12.0,

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,15 @@ public void setupAutos() {
422422

423423
autoChooser_.addOption("Center Algae Barge (1 Coral, 1 Algae)",
424424
AutoCommands.oneCoralOneAlgaeBargeAuto(brain_, drivebase_, manipulator_, grabber_));
425+
426+
AutoModeBaseCmd odometryTest = new AutoModeBaseCmd(
427+
"Odom Test",
428+
DriveCommands.findPath("Odom Test", false).orElseThrow()
429+
);
430+
431+
odometryTest.addCommands(DriveCommands.initialFollowPathCommand(drivebase_, "Odom Test"));
425432

426-
autoChooser_.addOption("Odom Test (aka Kachow)", DriveCommands.initialFollowPathCommand(drivebase_, "Odom Test"));
433+
autoChooser_.addOption("Odom Test (aka Kachow)", odometryTest);
427434
}
428435

429436
private void subsystemCreateException(Exception ex) {

src/main/java/frc/robot/generated/CompTunerConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class CompTunerConstants {
3131
// output type specified by SwerveModuleConstants.DriveMotorClosedLoopOutput
3232
private static final Slot0Configs driveGains = new Slot0Configs()
3333
.withKP(0.1).withKI(0).withKD(0)
34-
.withKS(0.48504).withKV(0.94222);
34+
.withKS(0.21326).withKV(0.84586);
3535

3636
// The closed-loop output type to use for the steer motors;
3737
// This affects the PID/FF gains for the steer motors
@@ -82,7 +82,7 @@ public class CompTunerConstants {
8282

8383
private static final double kDriveGearRatio = 6.746031746031747;
8484
private static final double kSteerGearRatio = 21.428571428571427;
85-
private static final Distance kWheelRadius = Inches.of(1.757);
85+
private static final Distance kWheelRadius = Inches.of(1.934);
8686

8787
private static final boolean kInvertLeftSide = false;
8888
private static final boolean kInvertRightSide = true;

0 commit comments

Comments
 (0)