DeepSpace  2019
HatchGripper.cpp
Go to the documentation of this file.
2 
3 HatchGripper::HatchGripper() : frc::Subsystem("HatchGripper") {
5 }
6 
8  SetDefaultCommand(new ControlHatchGripper());
9 }
10 
12  this->pHatchSolenoid->Set(frc::DoubleSolenoid::Value::kForward);
13 }
14 
16  this->pHatchSolenoid->Set(frc::DoubleSolenoid::Value::kReverse);
17 }
18 
20  this->pHatchSolenoid->Set(frc::DoubleSolenoid::Value::kOff);
21 }
frc::DoubleSolenoid * pHatchSolenoid
Pointer to double solenoid.
Definition: HatchGripper.h:20
HatchGripper()
Class constructor.
Definition: HatchGripper.cpp:3
void Deploy()
Deploy the gripper.
#define PCM_CAN_ID
Definition: RobotMap.h:87
void TurnOff()
Turn of gripper.
void InitDefaultCommand() override
Initalizes the default command for this subsystem (ControlHatchGripper)
Definition: HatchGripper.cpp:7
void Retract()
Retract the gripper.
#define HatchGripper_REVERSE_ID
Definition: RobotMap.h:97
#define HatchGripper_FORWARD_ID
Definition: RobotMap.h:96
An interface command for toggleing the gripper.