DeepSpace
2019
|
An interface command for driving the robot with an xbox controller. More...
#include <ControlSlider.h>
Public Member Functions | |
ControlSlider () | |
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 | |
double | speed |
Speed value that will be passed into Slider::Slide. More... | |
frc::XboxController * | pJoyOp |
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 ControlSlider.h.
ControlSlider::ControlSlider | ( | ) |
Class constructor.
Definition at line 4 of file ControlSlider.cpp.
|
override |
Runs once when IsFinished() returns true.
Definition at line 50 of file ControlSlider.cpp.
|
override |
Called in a loop during Teleop.
Definition at line 18 of file ControlSlider.cpp.
|
override |
Runs once on initalization.
Definition at line 13 of file ControlSlider.cpp.
|
override |
Runs once if the command is forced to stop.
Definition at line 54 of file ControlSlider.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 47 of file ControlSlider.cpp.
|
private |
A mnemonic for the operator's controller because we are lazy.
Definition at line 32 of file ControlSlider.h.
|
private |
Speed value that will be passed into Slider::Slide.
Definition at line 30 of file ControlSlider.h.