aecab3e64581a7178e8ed57eaf8838fe660c8df5
1 package org
.usfirst
.frc
.team3501
.robot
.subsystems
;
3 import org
.usfirst
.frc
.team3501
.robot
.RobotMap
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.*;
6 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
;
7 import edu
.wpi
.first
.wpilibj
.command
.Subsystem
;
9 public class Claw
extends Subsystem
{
11 private final DoubleSolenoid piston
;
14 piston
= new DoubleSolenoid(
15 RobotMap
.CLAW_FORWARD_CHANNEL
, RobotMap
.CLAW_REVERSE_CHANNEL
);
18 public void initDefaultCommand() {
19 setDefaultCommand(new CloseClaw());
23 piston
.set(RobotMap
.OPEN
);
27 piston
.set(RobotMap
.CLOSED
);