Skip to content

Commit

Permalink
Update module values
Browse files Browse the repository at this point in the history
Changed CAN IDs for the Spark MAX motor controllers

Changed values for the inverted angle and drive

Changed absolute encoder offset values
  • Loading branch information
garrettsummerfi3ld committed Feb 3, 2024
1 parent c4b5249 commit 83d4409
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/main/deploy/swerve/modules/backleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"front": -13.5,
"left": 13.5
},
"absoluteEncoderOffset": 55.020,
"absoluteEncoderOffset": 276.15234375,
"drive": {
"type": "sparkmax",
"id": 7,
"id": 8,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 8,
"id": 7,
"canbus": null
},
"conversionFactor": {
Expand All @@ -24,7 +24,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"angle": true
"drive": false,
"angle": 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": -13.5,
"left": -13.5
},
"absoluteEncoderOffset": 298.740,
"absoluteEncoderOffset": 299.267578125,
"drive": {
"type": "sparkmax",
"id": 10,
Expand All @@ -25,6 +25,6 @@
},
"inverted": {
"drive": false,
"angle": true
"angle": false
}
}
10 changes: 5 additions & 5 deletions src/main/deploy/swerve/modules/frontleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"front": 13.5,
"left": 13.5
},
"absoluteEncoderOffset": 185.977,
"absoluteEncoderOffset": 357.978515625,
"drive": {
"type": "sparkmax",
"id": 1,
"id": 2,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 2,
"id": 1,
"canbus": null
},
"conversionFactor": {
Expand All @@ -24,7 +24,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"angle": true
"drive": false,
"angle": false
}
}
8 changes: 4 additions & 4 deletions src/main/deploy/swerve/modules/frontright.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"front": 13.5,
"left": -13.5
},
"absoluteEncoderOffset": 88.330,
"absoluteEncoderOffset": 52.91015625,
"drive": {
"type": "sparkmax",
"id": 4,
"id": 5,
"canbus": null
},
"angle": {
"type": "sparkmax",
"id": 5,
"id": 4,
"canbus": null
},
"conversionFactor": {
Expand All @@ -25,6 +25,6 @@
},
"inverted": {
"drive": false,
"angle": true
"angle": false
}
}

0 comments on commit 83d4409

Please sign in to comment.