Skip to content

Commit

Permalink
Add DIETER controller constants init
Browse files Browse the repository at this point in the history
  • Loading branch information
rakrakon committed Feb 6, 2024
1 parent 40fe1c4 commit b0fb231
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/frc/robot/swerve/SwerveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public static void initConstants(boolean isWCP, boolean isReal) {
ANGLE_KD.initDefault(0.0);
ANGLE_KS.initDefault(0.0);

ROTATION_KP.initDefault(0.9);
ROTATION_KI.initDefault(0.0);
ROTATION_KD.initDefault(0.0);
ROTATION_KDIETER.initDefault(0.0);

ROBOT_WIDTH = 0.584;
ROBOT_LENGTH = 0.584;
WHEEL_DIAMETER = 0.099;
Expand Down Expand Up @@ -135,6 +140,11 @@ public static void initConstants(boolean isWCP, boolean isReal) {
ANGLE_KD.initDefault(0.0);
ANGLE_KS.initDefault(0.28);

ROTATION_KP.initDefault(0.9);
ROTATION_KI.initDefault(0.0);
ROTATION_KD.initDefault(0.0);
ROTATION_KDIETER.initDefault(0.0);

ROBOT_WIDTH = 0.584;
ROBOT_LENGTH = 0.584;
WHEEL_DIAMETER = 0.099;
Expand All @@ -161,6 +171,11 @@ public static void initConstants(boolean isWCP, boolean isReal) {
ANGLE_KD.initDefault(0.0);
ANGLE_KS.initDefault(0.000_65);

ROTATION_KP.initDefault(0.9);
ROTATION_KI.initDefault(0.0);
ROTATION_KD.initDefault(0.0);
ROTATION_KDIETER.initDefault(0.0);

ROBOT_WIDTH = 0.512;
ROBOT_LENGTH = 0.67;
WHEEL_DIAMETER = 0.099;
Expand Down

0 comments on commit b0fb231

Please sign in to comment.