Skip to content

Commit

Permalink
fixed the flipping issue for auton
Browse files Browse the repository at this point in the history
  • Loading branch information
TreeWonTwoToFor committed Feb 10, 2024
1 parent 47c5db7 commit 47886c9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/comp/modules/backleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"drive": false,
"angle": false
},
"absoluteEncoderOffset": 169.89,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/comp/modules/backright.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"drive": false,
"angle": false
},
"absoluteEncoderOffset": 350.8,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/comp/modules/frontleft.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"drive": false,
"angle": false
},
"absoluteEncoderOffset": 186.8,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/comp/modules/frontright.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"canbus": null
},
"inverted": {
"drive": true,
"drive": false,
"angle": false
},
"absoluteEncoderOffset": 341.0,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/swerve/comp/swervedrive.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": 0,
"canbus": null
},
"invertedIMU": false,
"invertedIMU": true,
"modules": [
"frontleft.json",
"frontright.json",
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/frc3512/robot/subsystems/Superstructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public void configureAxisActions() {
swerve.driveCommand(
() ->
MathUtil.applyDeadband(
-driverXbox.getRawAxis(translationAxis),
driverXbox.getRawAxis(translationAxis),
Constants.SwerveConstants.swerveDeadband),
() ->
MathUtil.applyDeadband(
-driverXbox.getRawAxis(strafeAxis), Constants.SwerveConstants.swerveDeadband),
driverXbox.getRawAxis(strafeAxis), Constants.SwerveConstants.swerveDeadband),
() ->
MathUtil.applyDeadband(
-driverXbox.getRawAxis(rotationAxis),
driverXbox.getRawAxis(rotationAxis),
Constants.SwerveConstants.swerveDeadband)));
}

Expand Down

0 comments on commit 47886c9

Please sign in to comment.