-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathClaw.java
More file actions
33 lines (23 loc) · 909 Bytes
/
Copy pathClaw.java
File metadata and controls
33 lines (23 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 Claw extends SubsystemBase {
/** Creates a new Claw. */
DoubleSolenoid clawSolenoid = new DoubleSolenoid (PneumaticsModuleType.CTREPCM, Constants.CLAW_SOLIOND_0, Constants.CLAW_SOLIOND_1);
public Claw() {}
public void Clawout(){
clawSolenoid.set(Value.kForward);
}
public void ClawIn(){
clawSolenoid.set(Value.kReverse);
}
@Override
public void periodic() {
}
}