DeepSpace  2019
ControlCargo.h
Go to the documentation of this file.
1 #ifndef _ControlCargo_HG_
3 #define _ControlCargo_HG_
4 
5 #include <frc/commands/Command.h>
6 #include <Subsystems/Flap.h>
7 #include "RobotMap.h"
8 #include <frc/GenericHID.h>
9 #include <frc/XboxController.h>
10 
11 
12 class ControlCargo : public frc::Command {
13  public:
14  ControlCargo();
15  void Initialize() override;
16  void Execute() override;
17 
24  bool IsFinished() override;
25 
26  void End() override;
27  void Interrupted() override;
28 
29 private:
30  frc::XboxController* pJoyDrive;
31 };
32 
33 #endif // _ControlCargo_HG_
void Execute() override
Called in a loop during Teleop.
ControlCargo()
Class constructor.
Definition: ControlCargo.cpp:4
frc::XboxController * pJoyDrive
A mnemonic for the operator&#39;s controller because we are lazy.
Definition: ControlCargo.h:30
bool IsFinished() override
void End() override
Runs once when IsFinished() returns true.
void Initialize() override
Runs once on initalization.
An interface command for driving the robot with an xbox controller.
Definition: ControlCargo.h:12
void Interrupted() override
Runs once if the command is forced to stop.