This commit is contained in:
Antoine PerreaultE 2023-11-30 17:30:07 -05:00
parent ccc61f3926
commit f86573e44b
6 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 22, "id": 7,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -16,7 +16,7 @@
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 22, "id": 6,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -16,7 +16,7 @@
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 22, "id": 5,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -16,7 +16,7 @@
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 22, "id": 4,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -43,6 +43,7 @@ public class RobotContainer {
GenericEntry force5 = forces.add("Force5", 0).getEntry(); GenericEntry force5 = forces.add("Force5", 0).getEntry();
GenericEntry force6 = forces.add("Force6", 0).getEntry(); GenericEntry force6 = forces.add("Force6", 0).getEntry();
GenericEntry force7 = forces.add("Force7", 0).getEntry(); GenericEntry force7 = forces.add("Force7", 0).getEntry();
CommandXboxController manette = new CommandXboxController(0); CommandXboxController manette = new CommandXboxController(0);
CommandJoystick joystick1 = new CommandJoystick(0); CommandJoystick joystick1 = new CommandJoystick(0);
Drive drive = new Drive(); Drive drive = new Drive();

View File

@ -19,7 +19,7 @@ public class Drive extends SubsystemBase {
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve"); File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
public void drive(double x, double y, double zRotation){ public void drive(double x, double y, double zRotation){
swerveDrive.drive(new Translation2d(x, y), zRotation, true, false); swerveDrive.drive(new Translation2d(x, y), zRotation, false, false);
} }