Merge branch 'main' of https://demerso.net/pls5618/2023/betabots
This commit is contained in:
33
src/main/java/frc/robot/subsystems/pistonshaker.java
Normal file
33
src/main/java/frc/robot/subsystems/pistonshaker.java
Normal file
@ -0,0 +1,33 @@
|
||||
// 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.
|
||||
|
||||
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 {
|
||||
private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonQuiShakef,Constants.pistonQuiShakeb);
|
||||
/** Creates a new 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
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user