DeepSpace  2019
ControlSlider Class Reference

An interface command for driving the robot with an xbox controller. More...

#include <ControlSlider.h>

Inheritance diagram for ControlSlider:

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...
 

Detailed Description

An interface command for driving the robot with an xbox controller.

Definition at line 12 of file ControlSlider.h.

Constructor & Destructor Documentation

◆ ControlSlider()

ControlSlider::ControlSlider ( )

Class constructor.

Definition at line 4 of file ControlSlider.cpp.

Member Function Documentation

◆ End()

void ControlSlider::End ( )
override

Runs once when IsFinished() returns true.

Definition at line 50 of file ControlSlider.cpp.

◆ Execute()

void ControlSlider::Execute ( )
override

Called in a loop during Teleop.

Definition at line 18 of file ControlSlider.cpp.

◆ Initialize()

void ControlSlider::Initialize ( )
override

Runs once on initalization.

Definition at line 13 of file ControlSlider.cpp.

◆ Interrupted()

void ControlSlider::Interrupted ( )
override

Runs once if the command is forced to stop.

Definition at line 54 of file ControlSlider.cpp.

◆ IsFinished()

bool ControlSlider::IsFinished ( )
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

Returns
True if command is finished, else false

Definition at line 47 of file ControlSlider.cpp.

Member Data Documentation

◆ pJoyOp

frc::XboxController* ControlSlider::pJoyOp
private

A mnemonic for the operator's controller because we are lazy.

Definition at line 32 of file ControlSlider.h.

◆ speed

double ControlSlider::speed
private

Speed value that will be passed into Slider::Slide.

Definition at line 30 of file ControlSlider.h.


The documentation for this class was generated from the following files: