s
This commit is contained in:
parent
72ddcc2032
commit
dfad6aeed9
@ -6,6 +6,9 @@ package frc.robot.subsystems;
|
|||||||
|
|
||||||
import com.revrobotics.CANSparkMax;
|
import com.revrobotics.CANSparkMax;
|
||||||
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
||||||
|
|
||||||
|
import edu.wpi.first.wpilibj.DoubleSolenoid;
|
||||||
|
import edu.wpi.first.wpilibj.PneumaticsModuleType;
|
||||||
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
||||||
import edu.wpi.first.wpilibj.motorcontrol.MotorControllerGroup;
|
import edu.wpi.first.wpilibj.motorcontrol.MotorControllerGroup;
|
||||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
@ -16,7 +19,8 @@ public class BasePilotable extends SubsystemBase {
|
|||||||
final CANSparkMax avantgauche = new CANSparkMax(Constants.avantgauche, MotorType.kBrushless);
|
final CANSparkMax avantgauche = new CANSparkMax(Constants.avantgauche, MotorType.kBrushless);
|
||||||
final CANSparkMax arrieredroit = new CANSparkMax(Constants.arrieredroit, MotorType.kBrushless);
|
final CANSparkMax arrieredroit = new CANSparkMax(Constants.arrieredroit, MotorType.kBrushless);
|
||||||
final CANSparkMax arrieregauche = new CANSparkMax(Constants.arrieregauche, MotorType.kBrushless);
|
final CANSparkMax arrieregauche = new CANSparkMax(Constants.arrieregauche, MotorType.kBrushless);
|
||||||
|
private DoubleSolenoid brakedroit = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonpinceouvre, Constants.pistonpinceferme);
|
||||||
|
private DoubleSolenoid brakegauche = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonpinceouvre, Constants.pistonpinceferme);
|
||||||
final MotorControllerGroup droit = new MotorControllerGroup(avantdroit, arrieredroit);
|
final MotorControllerGroup droit = new MotorControllerGroup(avantdroit, arrieredroit);
|
||||||
final MotorControllerGroup gauche = new MotorControllerGroup(avantgauche, arrieregauche);
|
final MotorControllerGroup gauche = new MotorControllerGroup(avantgauche, arrieregauche);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user