From 0d798a122743d3343fd4a17de7544784b5a743e3 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Tue, 13 Feb 2024 18:54:44 -0500 Subject: [PATCH] --- simgui.json | 50 ++++++++++++++++++-- src/main/java/frc/robot/subsystem/Drive.java | 4 +- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/simgui.json b/simgui.json index 070af3e..fb42214 100644 --- a/simgui.json +++ b/simgui.json @@ -5,6 +5,53 @@ "visible": true } }, + "Other Devices": { + "SPARK MAX [10]": { + "header": { + "open": true + } + }, + "SPARK MAX [13]": { + "header": { + "open": true + } + }, + "SPARK MAX [14]": { + "header": { + "open": true + } + }, + "SPARK MAX [15]": { + "header": { + "open": true + } + }, + "SPARK MAX [3]": { + "header": { + "open": true + } + }, + "Talon SRX[16]": { + "header": { + "open": true + } + }, + "Talon SRX[19]": { + "header": { + "open": true + } + }, + "Talon SRX[20]": { + "header": { + "open": true + } + }, + "Talon SRX[21]": { + "header": { + "open": true + } + } + }, "Solenoids": { "0": { "header": { @@ -57,9 +104,6 @@ } } }, - "NetworkTables Info": { - "visible": true - }, "NetworkTables View": { "visible": false }, diff --git a/src/main/java/frc/robot/subsystem/Drive.java b/src/main/java/frc/robot/subsystem/Drive.java index 76da4b1..896d1e7 100644 --- a/src/main/java/frc/robot/subsystem/Drive.java +++ b/src/main/java/frc/robot/subsystem/Drive.java @@ -28,12 +28,12 @@ public class Drive extends SubsystemBase { File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve"); public void drive(double x, double y, double zRotation){ - swerveDrive.drive(new Translation2d(x*2, y*2), zRotation, true, false); + swerveDrive.drive(new Translation2d(x*3, y*3), zRotation, true, false); } public Drive() { try { - this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(2); + this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(3); } catch (IOException e) { e.printStackTrace(); }