29 lines
885 B
Java
Raw Normal View History

2023-02-06 19:02:17 -05:00
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
2023-02-06 19:13:18 -05:00
package frc.robot.subsystems.bras;
2023-02-06 19:02:17 -05:00
2023-02-08 19:04:28 -05:00
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.PneumaticsModuleType;
2023-02-06 19:02:17 -05:00
import edu.wpi.first.wpilibj2.command.SubsystemBase;
2023-02-08 19:04:28 -05:00
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import frc.robot.Constants;
2023-02-06 19:02:17 -05:00
2023-02-22 18:50:04 -05:00
public class Pince extends SubsystemBase{
2023-02-08 19:04:28 -05:00
private DoubleSolenoid pistonPince = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonpinceouvre, Constants.pistonpinceferme);
2023-02-06 19:02:17 -05:00
/** Creates a new Pince. */
2023-02-08 19:04:28 -05:00
public Pince() {
}
public void fermer() {
pistonPince.set(Value.kReverse);
2023-02-08 19:04:28 -05:00
}
public void ouvrir() {
pistonPince.set(Value.kForward);
}
2023-02-06 19:02:17 -05:00
@Override
public void periodic() {
}
}