DeepSpace  2019
ControlCargo Class Reference

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

#include <ControlCargo.h>

Inheritance diagram for ControlCargo:

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

Detailed Description

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

Definition at line 12 of file ControlCargo.h.

Constructor & Destructor Documentation

◆ ControlCargo()

ControlCargo::ControlCargo ( )

Class constructor.

Definition at line 4 of file ControlCargo.cpp.

Member Function Documentation

◆ End()

void ControlCargo::End ( )
override

Runs once when IsFinished() returns true.

Definition at line 30 of file ControlCargo.cpp.

◆ Execute()

void ControlCargo::Execute ( )
override

Called in a loop during Teleop.

Definition at line 15 of file ControlCargo.cpp.

◆ Initialize()

void ControlCargo::Initialize ( )
override

Runs once on initalization.

Definition at line 12 of file ControlCargo.cpp.

◆ Interrupted()

void ControlCargo::Interrupted ( )
override

Runs once if the command is forced to stop.

Definition at line 34 of file ControlCargo.cpp.

◆ IsFinished()

bool ControlCargo::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 27 of file ControlCargo.cpp.

Member Data Documentation

◆ pJoyDrive

frc::XboxController* ControlCargo::pJoyDrive
private

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

Definition at line 30 of file ControlCargo.h.


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