This commit is contained in:
		
							
								
								
									
										50
									
								
								simgui.json
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								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 | ||||
|   }, | ||||
|   | ||||
| @@ -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(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user