Skip to content

Commit

Permalink
Made some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenTomato5 committed Feb 8, 2025
1 parent 10b760e commit 70f505c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions src/main/deploy/swerve/modules/backleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
"front": 10.171,
"left": -13.878
},
"absoluteEncoderOffset": 0,
"absoluteEncoderOffset": 74.267578125,
"drive": {
"type": "sparkmax_neo",
"id": 2,
"canbus": null
},
"angle": {

"type": "sparkmax_neo",
"id": 10,
"canbus": null
Expand All @@ -22,7 +21,7 @@
},
"inverted": {
"drive": false,
"angle": false
"angle": true
},
"absoluteEncoderInverted": false
}
4 changes: 2 additions & 2 deletions src/main/deploy/swerve/modules/backright.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"front": -10.635,
"left": -12.796
},
"absoluteEncoderOffset": 0,
"absoluteEncoderOffset": 256.5527,
"drive": {
"type": "sparkmax_neo",
"id": 35,
Expand All @@ -21,7 +21,7 @@
},
"inverted": {
"drive": false,
"angle": false
"angle": true
},
"absoluteEncoderInverted": false
}
4 changes: 2 additions & 2 deletions src/main/deploy/swerve/modules/frontleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"front": 10.822,
"left": 11.331
},
"absoluteEncoderOffset": 0,
"absoluteEncoderOffset": 132.5390625,
"drive": {
"type": "sparkmax_neo",
"id": 7,
Expand All @@ -21,7 +21,7 @@
},
"inverted": {
"drive": false,
"angle": false
"angle": true
},
"absoluteEncoderInverted": false
}
4 changes: 2 additions & 2 deletions src/main/deploy/swerve/modules/frontright.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"front": -10.822,
"left": 13.793
},
"absoluteEncoderOffset": 0,
"absoluteEncoderOffset": 132.5390562,
"drive": {
"type": "sparkmax_neo",
"id": 11,
Expand All @@ -21,7 +21,7 @@
},
"inverted": {
"drive": false,
"angle": false
"angle": true
},
"absoluteEncoderInverted": false
}
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/modules/pidfproperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"angle": {
"p": 0.01,
"i": 0,
"d": 0.1,
"d": 0.02,
"f": 0,
"iz": 0
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/deploy/swerve/swervedrive.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
},
"invertedIMU": false,
"modules": [
"frontleft.json",
"backright.json",
"backleft.json",
"frontright.json",
"backleft.json",
"backright.json"
"frontleft.json"
]
}
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void runState() {
-1 * Controllers.DRIVER_CONTROLLER.getLeftY() * MAX_SPEED.magnitude()
),
Controllers.DRIVER_CONTROLLER.getRightX(),
true,
false,
false
);
break;
Expand Down

0 comments on commit 70f505c

Please sign in to comment.