DeepSpace
2019
|
An interface command for driving the robot with an xbox controller. More...
#include <ControlCargo.h>
Public Member Functions | |
ControlCargo () | |
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 * | pJoyDrive |
A mnemonic for the operator's controller because we are lazy. More... | |
An interface command for driving the robot with an xbox controller.
Definition at line 12 of file ControlCargo.h.
ControlCargo::ControlCargo | ( | ) |
Class constructor.
Definition at line 4 of file ControlCargo.cpp.
|
override |
Runs once when IsFinished() returns true.
Definition at line 30 of file ControlCargo.cpp.
|
override |
Called in a loop during Teleop.
Definition at line 15 of file ControlCargo.cpp.
|
override |
Runs once on initalization.
Definition at line 12 of file ControlCargo.cpp.
|
override |
Runs once if the command is forced to stop.
Definition at line 34 of file ControlCargo.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 27 of file ControlCargo.cpp.
|
private |
A mnemonic for the operator's controller because we are lazy.
Definition at line 30 of file ControlCargo.h.