DeepSpace
2019
|
An interface command for driving the robot with an xbox controller. More...
#include <ControlCompressor.h>
Public Member Functions | |
ControlCompressor () | |
Class constructor. More... | |
void | Initialize () override |
Runs once on initalization. More... | |
void | Execute () override |
Called in a loop during Teleop. More... | |
bool | IsFinished () override |
void | End () override |
Runs once when IsFinished() returns true. More... | |
void | Interrupted () override |
Runs once if the command is forced to stop. More... | |
Private Attributes | |
frc::XboxController * | pJoyOp |
A mnemonic for the operator's controller. More... | |
frc::XboxController * | pJoyDrive |
A mnemonic for the driver's controller. More... | |
An interface command for driving the robot with an xbox controller.
Definition at line 12 of file ControlCompressor.h.
ControlCompressor::ControlCompressor | ( | ) |
Class constructor.
Definition at line 4 of file ControlCompressor.cpp.
|
override |
Runs once when IsFinished() returns true.
Definition at line 32 of file ControlCompressor.cpp.
|
override |
Called in a loop during Teleop.
Definition at line 16 of file ControlCompressor.cpp.
|
override |
Runs once on initalization.
Definition at line 13 of file ControlCompressor.cpp.
|
override |
Runs once if the command is forced to stop.
Definition at line 36 of file ControlCompressor.cpp.
|
override |
Used to tell wpilib if the command is fully finished. This should never return true Because we always want to be able to drive the bot during teleop
Definition at line 29 of file ControlCompressor.cpp.
|
private |
A mnemonic for the driver's controller.
Definition at line 31 of file ControlCompressor.h.
|
private |
A mnemonic for the operator's controller.
Definition at line 30 of file ControlCompressor.h.