Base pilotable

This commit is contained in:
2022-11-14 19:46:09 -05:00
parent 5afe54c3b6
commit de18ce1961
3 changed files with 19 additions and 5 deletions

View File

@ -4,14 +4,29 @@
package frc.robot.subsystems;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.PneumaticsModuleType;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
public class pistonshaker extends SubsystemBase {
public class Pistonshaker extends SubsystemBase {
private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonQuiShakef,Constants.pistonQuiShakeb);
/** Creates a new pistonshaker. */
public pistonshaker() {}
public Pistonshaker() {
}
public void sortirpiston() {
shaker.set(Value.kForward);
}
public void rentrerpiston() {
shaker.set(Value.kReverse);
}
@Override
public void periodic() {
// This method will be called once per scheduler run
}
}