DeepSpace  2019
ControlCompressor Class Reference

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

#include <ControlCompressor.h>

Inheritance diagram for ControlCompressor:

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

Detailed Description

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

Definition at line 12 of file ControlCompressor.h.

Constructor & Destructor Documentation

◆ ControlCompressor()

ControlCompressor::ControlCompressor ( )

Class constructor.

Definition at line 4 of file ControlCompressor.cpp.

Member Function Documentation

◆ End()

void ControlCompressor::End ( )
override

Runs once when IsFinished() returns true.

Definition at line 32 of file ControlCompressor.cpp.

◆ Execute()

void ControlCompressor::Execute ( )
override

Called in a loop during Teleop.

Definition at line 16 of file ControlCompressor.cpp.

◆ Initialize()

void ControlCompressor::Initialize ( )
override

Runs once on initalization.

Definition at line 13 of file ControlCompressor.cpp.

◆ Interrupted()

void ControlCompressor::Interrupted ( )
override

Runs once if the command is forced to stop.

Definition at line 36 of file ControlCompressor.cpp.

◆ IsFinished()

bool ControlCompressor::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 29 of file ControlCompressor.cpp.

Member Data Documentation

◆ pJoyDrive

frc::XboxController* ControlCompressor::pJoyDrive
private

A mnemonic for the driver's controller.

Definition at line 31 of file ControlCompressor.h.

◆ pJoyOp

frc::XboxController* ControlCompressor::pJoyOp
private

A mnemonic for the operator's controller.

Definition at line 30 of file ControlCompressor.h.


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