Base pilotable

This commit is contained in:
2022-11-14 19:53:50 -05:00
parent abc0794e54
commit a38025043b
2 changed files with 7 additions and 9 deletions

View File

@ -8,6 +8,7 @@ import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.drive.MecanumDrive;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
public class BasePilotable extends SubsystemBase {
@ -23,7 +24,7 @@ private WPI_TalonSRX arriereDroit = new WPI_TalonSRX(Constants.MoteurArriereDroi
private MecanumDrive mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit);
private void Drive(double y, double x, double rot){
drive.driveCarthesian(y, x, rot, 0);
mecanum.driveCartesian(y, x, rot, 0);
}
/** Creates a new BasePilotable. */
public BasePilotable() {}