DeepSpace  2019
ControlCompressor.h
Go to the documentation of this file.
1 #ifndef _CONTROLCOMPRESSOR_HG_
3 #define _CONTROLCOMPRESSOR_HG_
4 
5 #include <frc/commands/Command.h>
7 #include "RobotMap.h"
8 #include <frc/GenericHID.h>
9 #include <frc/WPILib.h>
10 
11 
12 class ControlCompressor : public frc::Command {
13  public:
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* pJoyOp;
31  frc::XboxController* pJoyDrive;
32 };
33 
34 #endif // _CONTROLCOMPRESSOR_HG_
void Initialize() override
Runs once on initalization.
ControlCompressor()
Class constructor.
void Interrupted() override
Runs once if the command is forced to stop.
bool IsFinished() override
void Execute() override
Called in a loop during Teleop.
An interface command for driving the robot with an xbox controller.
frc::XboxController * pJoyOp
A mnemonic for the operator&#39;s controller.
void End() override
Runs once when IsFinished() returns true.
frc::XboxController * pJoyDrive
A mnemonic for the driver&#39;s controller.