DeepSpace  2019
AutoClimbHigh Class Reference

#include <AutoClimbHigh.h>

Inheritance diagram for AutoClimbHigh:

Public Member Functions

 AutoClimbHigh ()
 
void Initialize () override
 
void Execute () override
 Switch checks the stage and then calls the appropriate Execute_<Stage>() function. More...
 
bool IsFinished () override
 
void End () override
 
void Interrupted () override
 
void Execute_LowerArm (void)
 Execute stage LOWER_ARM stuff. More...
 
void Execute_LowerLeg (void)
 Execute stage LOWER_LEG stuff. More...
 
void Execute_Crawl (void)
 Execute stage CRAWL stuff. More...
 
void Execute_Drive (void)
 Execute stage DRIVE stuff. More...
 
void Execute_Raiseleg (void)
 Execute stage RAISE_LEG stuff. More...
 
bool IsClimbing ()
 Returns whether the robot is in the middle of climbing. More...
 

Private Types

enum  Stage : uint8_t {
  S_LOWER_ARM, S_LOWER_LEG, S_CRAWL, S_DRIVE,
  S_RAISE_LEG, S_FINISHED
}
 Enum for tracking which stage of climb the robot is on The stage is changed in the Execute_<Stage>() functions. More...
 

Private Attributes

enum AutoClimbHigh::Stage stage
 
frc::Timer * pTimer
 Timer for timing out stages if it takes too long. More...
 
bool onFloor
 Bool for tracking whether the robot is off the floor or not. More...
 
bool climbing
 Bool for tracking whether the robot is in the middle of auto climb. More...
 

Detailed Description

Definition at line 14 of file AutoClimbHigh.h.

Member Enumeration Documentation

◆ Stage

enum AutoClimbHigh::Stage : uint8_t
private

Enum for tracking which stage of climb the robot is on The stage is changed in the Execute_<Stage>() functions.

Enumerator
S_LOWER_ARM 
S_LOWER_LEG 
S_CRAWL 
S_DRIVE 
S_RAISE_LEG 
S_FINISHED 

Definition at line 33 of file AutoClimbHigh.h.

Constructor & Destructor Documentation

◆ AutoClimbHigh()

AutoClimbHigh::AutoClimbHigh ( )

Definition at line 11 of file AutoClimbHigh.cpp.

Member Function Documentation

◆ End()

void AutoClimbHigh::End ( )
override

Definition at line 146 of file AutoClimbHigh.cpp.

◆ Execute()

void AutoClimbHigh::Execute ( )
override

Switch checks the stage and then calls the appropriate Execute_<Stage>() function.

Definition at line 29 of file AutoClimbHigh.cpp.

◆ Execute_Crawl()

void AutoClimbHigh::Execute_Crawl ( void  )

Execute stage CRAWL stuff.

Definition at line 72 of file AutoClimbHigh.cpp.

◆ Execute_Drive()

void AutoClimbHigh::Execute_Drive ( void  )

Execute stage DRIVE stuff.

Definition at line 98 of file AutoClimbHigh.cpp.

◆ Execute_LowerArm()

void AutoClimbHigh::Execute_LowerArm ( void  )

Execute stage LOWER_ARM stuff.

Definition at line 45 of file AutoClimbHigh.cpp.

◆ Execute_LowerLeg()

void AutoClimbHigh::Execute_LowerLeg ( void  )

Execute stage LOWER_LEG stuff.

Definition at line 59 of file AutoClimbHigh.cpp.

◆ Execute_Raiseleg()

void AutoClimbHigh::Execute_Raiseleg ( void  )

Execute stage RAISE_LEG stuff.

Definition at line 115 of file AutoClimbHigh.cpp.

◆ Initialize()

void AutoClimbHigh::Initialize ( )
override

Definition at line 21 of file AutoClimbHigh.cpp.

◆ Interrupted()

void AutoClimbHigh::Interrupted ( )
override

Definition at line 156 of file AutoClimbHigh.cpp.

◆ IsClimbing()

bool AutoClimbHigh::IsClimbing ( )

Returns whether the robot is in the middle of climbing.

Definition at line 166 of file AutoClimbHigh.cpp.

◆ IsFinished()

bool AutoClimbHigh::IsFinished ( )
override

Definition at line 128 of file AutoClimbHigh.cpp.

Member Data Documentation

◆ climbing

bool AutoClimbHigh::climbing
private

Bool for tracking whether the robot is in the middle of auto climb.

Definition at line 44 of file AutoClimbHigh.h.

◆ onFloor

bool AutoClimbHigh::onFloor
private

Bool for tracking whether the robot is off the floor or not.

Definition at line 43 of file AutoClimbHigh.h.

◆ pTimer

frc::Timer* AutoClimbHigh::pTimer
private

Timer for timing out stages if it takes too long.

Definition at line 42 of file AutoClimbHigh.h.

◆ stage

enum AutoClimbHigh::Stage AutoClimbHigh::stage
private

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