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