Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Fix translation PID
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjcoderman committed Nov 9, 2023
1 parent 8ce7ff9 commit 1c7390f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
26 changes: 11 additions & 15 deletions src/main/deploy/pathplanner/test.path
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,44 @@
"waypoints": [
{
"anchorPoint": {
"x": 14.677480412653132,
"y": 5.048699712784042
"x": 9.590241007405092,
"y": 5.231763251988043
},
"prevControl": null,
"nextControl": {
"x": 13.261146714601123,
"y": 5.029429866552041
"x": 8.173907309353083,
"y": 5.212493405756042
},
"holonomicAngle": 180.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [
"preloadCone",
"scoreHigh",
"stowFast"
],
"names": [],
"executionBehavior": "sequential",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 10.206876086829098,
"y": 4.615128172564038
"x": 6.468525917821069,
"y": 5.116144174596042
},
"prevControl": {
"x": 11.343797014517108,
"y": 4.586223403216038
"x": 7.66325638420508,
"y": 5.491906176120046
},
"nextControl": null,
"holonomicAngle": 90.0,
"holonomicAngle": -136.363927531603,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"executionBehavior": "sequential",
"waitBehavior": "none",
"waitTime": 0
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class Config {
public static final PIDConstants SWERVE_TRANSLATION_PID = new PIDConstants(2.5, 0, 0);
public static final PIDConstants SWERVE_ROTATION_PID = new PIDConstants(2.5, 0, 0.1);
public static final PIDConstants SWERVE_ROTATION_SNAP_PID = new PIDConstants(3, 0, 0);
public static final boolean SWERVE_TRANSLATION_PID_INVERT = false;
public static final boolean SWERVE_TRANSLATION_PID_INVERT = true;
public static final boolean SWERVE_ROTATION_PID_INVERT = false;
public static final boolean SWERVE_ROTATION_SNAP_PID_INVERT = true;

Expand Down

0 comments on commit 1c7390f

Please sign in to comment.