jaocnivod j
This commit is contained in:
@ -29,7 +29,6 @@ public class Grimpeur extends SubsystemBase {
|
||||
final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless);
|
||||
// limit switch
|
||||
final Solenoid pistondroite= new Solenoid(PneumaticsModuleType.CTREPCM, Constants.pistondroiteouvre);
|
||||
final Solenoid pistondgauche = new Solenoid(PneumaticsModuleType.CTREPCM, Constants.pistondgaucheouvre);
|
||||
//fonction
|
||||
public Grimpeur() {
|
||||
pistonouvre();
|
||||
@ -61,15 +60,10 @@ public AHRS gyroscope = new AHRS();
|
||||
}
|
||||
public void pistonferme(){
|
||||
pistondroite.set(true);
|
||||
pistondgauche.set(true);
|
||||
}
|
||||
public void pistonouvre(){
|
||||
pistondgauche.set(false);
|
||||
pistondroite.set(false);
|
||||
}
|
||||
public boolean piston(){
|
||||
return pistondgauche.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void periodic() {
|
||||
|
Reference in New Issue
Block a user