DeepSpace  2019
ControlHatchGripper.h
Go to the documentation of this file.
1 #ifndef _CONTROLHATCHGRIPPER_HG_
3 #define _CONTROLHATCHGRIPPER_HG_
4 
5 #include <frc/commands/Command.h>
7 #include "RobotMap.h"
8 #include <frc/WPILib.h>
9 #include <frc/GenericHID.h>
10 
11 class ControlHatchGripper : public frc::Command {
12  public:
14  void Initialize() override;
15  void Execute() override;
16  bool IsFinished() override;
17  void End() override;
18  void Interrupted() override;
19 
20 private:
21  double speed;
22  frc::XboxController* pJoyOp;
23 };
24 
25 #endif // _CONTROLHATCHGRIPPER_HG_
bool IsFinished() override
ControlHatchGripper()
Class constructor.
frc::XboxController * pJoyOp
void End() override
Runs once when IsFinished() returns true.
void Interrupted() override
Runs once if the command is forced to stop.
void Execute() override
Called in a loop during Teleop.
void Initialize() override
Runs once on initalization.
An interface command for toggleing the gripper.