Base pilotable
This commit is contained in:
@ -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() {}
|
||||
|
Reference in New Issue
Block a user