ngnhgcmvn
This commit is contained in:
		| @@ -4,6 +4,8 @@ | |||||||
|  |  | ||||||
| package frc.robot; | package frc.robot; | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean |  * The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean | ||||||
|  * constants. This class should not be used for any other purpose. All constants should be declared |  * constants. This class should not be used for any other purpose. All constants should be declared | ||||||
|   | |||||||
| @@ -6,19 +6,27 @@ package frc.robot.subsystems; | |||||||
|  |  | ||||||
| import edu.wpi.first.wpilibj.DoubleSolenoid; | import edu.wpi.first.wpilibj.DoubleSolenoid; | ||||||
| import edu.wpi.first.wpilibj.PneumaticsModuleType; | import edu.wpi.first.wpilibj.PneumaticsModuleType; | ||||||
|  | import edu.wpi.first.wpilibj.DoubleSolenoid.Value; | ||||||
| import edu.wpi.first.wpilibj2.command.SubsystemBase; | import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||||||
| import frc.robot.Constants; | import frc.robot.Constants; | ||||||
|  |  | ||||||
| public class Pistonshaker extends SubsystemBase { | public class Pistonshaker extends SubsystemBase { | ||||||
|   private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonQuiShakeb,Constants.pistonQuiShakef); |   private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonQuiShakef,Constants.pistonQuiShakeb); | ||||||
|   /** Creates a new pistonshaker. */ |   /** Creates a new pistonshaker. */ | ||||||
|  |  | ||||||
|   public Pistonshaker() { |   public Pistonshaker() { | ||||||
|      |      | ||||||
|   } |   } | ||||||
|  | public void sortirpiston() { | ||||||
|  |  shaker.set(Value.kForward); | ||||||
|  | } | ||||||
|  | public void rentrerpiston() { | ||||||
|  |   shaker.set(Value.kReverse); | ||||||
|  |  } | ||||||
|  |   | ||||||
|   @Override |   @Override | ||||||
|   public void periodic() { |   public void periodic() { | ||||||
|  |    | ||||||
|     // This method will be called once per scheduler run |     // This method will be called once per scheduler run | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user