DeepSpace  2019
HatchGripper.h
Go to the documentation of this file.
1 #ifndef _HATCHGRIPPER_HG_
2 #define _HATCHGRIPPER_HG_
3 
4 #include <frc/commands/Subsystem.h>
5 #include "RobotMap.h"
7 #include <frc/DoubleSolenoid.h>
8 #include <frc/WPILib.h>
9 
10 class HatchGripper : public frc::Subsystem {
11  public:
12  HatchGripper();
13  void InitDefaultCommand() override;
14 
15  void Deploy();
16  void Retract();
17  void TurnOff();
18 
19  private:
20  frc::DoubleSolenoid* pHatchSolenoid;
21 };
22 
23 #endif //_HATCHGRIPPER_HG_
frc::DoubleSolenoid * pHatchSolenoid
Pointer to double solenoid.
Definition: HatchGripper.h:20
HatchGripper()
Class constructor.
Definition: HatchGripper.cpp:3
void Deploy()
Deploy the gripper.
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.