base pilotable
This commit is contained in:
		| @@ -23,11 +23,14 @@ private WPI_TalonSRX arriereDroit = new WPI_TalonSRX(Constants.MoteurArriereDroi | |||||||
|  |  | ||||||
| private MecanumDrive mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit); | private MecanumDrive mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit); | ||||||
|  |  | ||||||
| private void Drive(double y, double x, double rot){ | private void drive(double y, double x, double rot){ | ||||||
|   mecanum.driveCartesian(y, x, rot, 0); |   mecanum.driveCartesian(y, x, rot, 0); | ||||||
| } | } | ||||||
|   /** Creates a new BasePilotable. */ |   /** Creates a new BasePilotable. */ | ||||||
|   public BasePilotable() {} |   public BasePilotable() { | ||||||
|  |     avantDroit.setInverted(true); | ||||||
|  |     arriereDroit.setInverted(true); | ||||||
|  |   } | ||||||
|     |     | ||||||
|   @Override |   @Override | ||||||
|   public void periodic() { |   public void periodic() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user