|
DeepSpace
2019
|
#include <AutoClimbHigh.h>
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... | |
Definition at line 14 of file AutoClimbHigh.h.
|
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.
| AutoClimbHigh::AutoClimbHigh | ( | ) |
Definition at line 11 of file AutoClimbHigh.cpp.
|
override |
Definition at line 146 of file AutoClimbHigh.cpp.
|
override |
Switch checks the stage and then calls the appropriate Execute_<Stage>() function.
Definition at line 29 of file AutoClimbHigh.cpp.
| void AutoClimbHigh::Execute_Crawl | ( | void | ) |
Execute stage CRAWL stuff.
Definition at line 72 of file AutoClimbHigh.cpp.
| void AutoClimbHigh::Execute_Drive | ( | void | ) |
Execute stage DRIVE stuff.
Definition at line 98 of file AutoClimbHigh.cpp.
| void AutoClimbHigh::Execute_LowerArm | ( | void | ) |
Execute stage LOWER_ARM stuff.
Definition at line 45 of file AutoClimbHigh.cpp.
| void AutoClimbHigh::Execute_LowerLeg | ( | void | ) |
Execute stage LOWER_LEG stuff.
Definition at line 59 of file AutoClimbHigh.cpp.
| void AutoClimbHigh::Execute_Raiseleg | ( | void | ) |
Execute stage RAISE_LEG stuff.
Definition at line 115 of file AutoClimbHigh.cpp.
|
override |
Definition at line 21 of file AutoClimbHigh.cpp.
|
override |
Definition at line 156 of file AutoClimbHigh.cpp.
| bool AutoClimbHigh::IsClimbing | ( | ) |
Returns whether the robot is in the middle of climbing.
Definition at line 166 of file AutoClimbHigh.cpp.
|
override |
Definition at line 128 of file AutoClimbHigh.cpp.
|
private |
Bool for tracking whether the robot is in the middle of auto climb.
Definition at line 44 of file AutoClimbHigh.h.
|
private |
Bool for tracking whether the robot is off the floor or not.
Definition at line 43 of file AutoClimbHigh.h.
|
private |
Timer for timing out stages if it takes too long.
Definition at line 42 of file AutoClimbHigh.h.
|
private |