base pilotable

This commit is contained in:
Olivier Dubois 2022-11-14 19:56:37 -05:00
parent a38025043b
commit bd28fe35c8

View File

@ -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() {