This commit is contained in:
Antoine PerreaultE 2023-11-01 18:04:49 -04:00
commit 39b0626519
7 changed files with 27 additions and 13 deletions

View File

@ -88,5 +88,10 @@
"buttonCount": 0, "buttonCount": 0,
"povCount": 0 "povCount": 0
} }
],
"robotJoysticks": [
{
"guid": "030000006d04000015c2000000000000"
}
] ]
} }

View File

@ -1,7 +1,16 @@
{ {
"NTProvider": { "NTProvider": {
"types": { "types": {
"/FMSInfo": "FMSInfo" "/FMSInfo": "FMSInfo",
"/SmartDashboard/Field": "Field2d",
"/SmartDashboard/navX-Sensor[1]": "Gyro"
},
"windows": {
"/SmartDashboard/Field": {
"window": {
"visible": true
}
}
} }
} }
} }

View File

@ -11,12 +11,12 @@
}, },
"angle": { "angle": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 1,
"canbus": null "canbus": null
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 0, "id": 2,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -6,17 +6,17 @@
"absoluteEncoderOffset": 0, "absoluteEncoderOffset": 0,
"drive": { "drive": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 3,
"canbus": null "canbus": null
}, },
"angle": { "angle": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 4,
"canbus": null "canbus": null
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 0, "id": 5,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -6,17 +6,17 @@
"absoluteEncoderOffset": 0, "absoluteEncoderOffset": 0,
"drive": { "drive": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 6,
"canbus": null "canbus": null
}, },
"angle": { "angle": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 7,
"canbus": null "canbus": null
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 0, "id": 8,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -6,17 +6,17 @@
"absoluteEncoderOffset": 0, "absoluteEncoderOffset": 0,
"drive": { "drive": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 9,
"canbus": null "canbus": null
}, },
"angle": { "angle": {
"type": "sparkmax", "type": "sparkmax",
"id": 0, "id": 10,
"canbus": null "canbus": null
}, },
"encoder": { "encoder": {
"type": "cancoder", "type": "cancoder",
"id": 0, "id": 11,
"canbus": null "canbus": null
}, },
"inverted": { "inverted": {

View File

@ -18,7 +18,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, true); swerveDrive.drive(new Translation2d(x, y), zRotation, true, false);
} }