DeepSpace  2019
ControlLight Class Reference

An interface command for toggleing the gripper. More...

#include <ControlLight.h>

Inheritance diagram for ControlLight:

Public Member Functions

 ControlLight ()
 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

bool state
 
frc::XboxController * pJoyOp
 

Detailed Description

An interface command for toggleing the gripper.

Definition at line 11 of file ControlLight.h.

Constructor & Destructor Documentation

◆ ControlLight()

ControlLight::ControlLight ( )

Class constructor.

Definition at line 4 of file ControlLight.cpp.

Member Function Documentation

◆ End()

void ControlLight::End ( )
override

Runs once when IsFinished() returns true.

Definition at line 27 of file ControlLight.cpp.

◆ Execute()

void ControlLight::Execute ( )
override

Called in a loop during Teleop.

Definition at line 15 of file ControlLight.cpp.

◆ Initialize()

void ControlLight::Initialize ( )
override

Runs once on initalization.

Definition at line 12 of file ControlLight.cpp.

◆ Interrupted()

void ControlLight::Interrupted ( )
override

Runs once if the command is forced to stop.

Definition at line 31 of file ControlLight.cpp.

◆ IsFinished()

bool ControlLight::IsFinished ( )
override

Definition at line 24 of file ControlLight.cpp.

Member Data Documentation

◆ pJoyOp

frc::XboxController* ControlLight::pJoyOp
private

Definition at line 22 of file ControlLight.h.

◆ state

bool ControlLight::state
private

Definition at line 21 of file ControlLight.h.


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