s
This commit is contained in:
		| @@ -16,6 +16,7 @@ public class Accumulateur extends SubsystemBase { | |||||||
|   final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2); |   final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2); | ||||||
|   final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc); |   final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc); | ||||||
|   final DigitalInput limitacc = new DigitalInput(0); |   final DigitalInput limitacc = new DigitalInput(0); | ||||||
|  |    | ||||||
|   public void Deaccumuler(double vitesse){Moteuracc2.set(vitesse);} |   public void Deaccumuler(double vitesse){Moteuracc2.set(vitesse);} | ||||||
|    |    | ||||||
|  |  | ||||||
|   | |||||||
| @@ -18,7 +18,9 @@ public class Drive extends SubsystemBase { | |||||||
|   /** Creates a new Drive. */ |   /** Creates a new Drive. */ | ||||||
|  |  | ||||||
|    SwerveDrive swerveDrive; |    SwerveDrive swerveDrive; | ||||||
|  |  | ||||||
|   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*2, y*2), zRotation, true, false); |     swerveDrive.drive(new Translation2d(x*2, y*2), zRotation, true, false); | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user