15 this->
pTimer =
new frc::Timer();
31 switch (this->
stage) {
39 Log(
"AutoClimbHigh has an invalid stage") ;
48 float speed = 0.35 + std::min(this->
pTimer->Get(), 2.0) * 0.325 ;
53 || this->
pTimer->Get() > 5.0) {
66 || this->
pTimer->Get() > 10.0) {
83 if (!this->
onFloor && nowOnFloor) {
92 if (this->
pTimer->Get() > 6.0) {
105 double power = 0.6 - std::min(this->
pTimer->Get(), 2.0) * 0.15 ;
109 if (this->
pTimer->Get() > 2.0) {
123 || this->
pTimer->Get() > 3.0) {
void Execute_LowerLeg(void)
Execute stage LOWER_LEG stuff.
static CrawlDrive * m_CrawlDrive
Pointer for the DriveTrain.
void MoveLeg(double Speed)
Move climb leg up or down.
frc::Timer * pTimer
Timer for timing out stages if it takes too long.
void Execute_LowerArm(void)
Execute stage LOWER_ARM stuff.
bool GetSensor(void)
Returns true if its on the floor.
static Arm * m_Arm
Pointer for the Arm.
bool IsFinished() override
void Initialize() override
void Log(std::string message)
Main robot class that is called by wpilib.
void Execute_Drive(void)
Execute stage DRIVE stuff.
void ArcadeDrive(double xSpeed, double zRotation)
void TankDrive(double leftSpeed, double rightSpeed)
bool IsClimbing()
Returns whether the robot is in the middle of climbing.
void Execute_Raiseleg(void)
Execute stage RAISE_LEG stuff.
void Move(double Speed)
Drive, (or crawl), forwards or backwards Moves the wheels attached to the arms. What wheels do...
enum AutoClimbHigh::Stage stage
static DriveTrain * m_DriveTrain
Pointer for the DriveTrain.
void Execute() override
Switch checks the stage and then calls the appropriate Execute_<Stage>() function.
static ClimbState CurrentClimbState
bool climbing
Bool for tracking whether the robot is in the middle of auto climb.
void Interrupted() override
void MoveArm(double Speed)
Move Arm arm up or down.
static Leg * m_Leg
Pointer for the Leg.
bool onFloor
Bool for tracking whether the robot is off the floor or not.
void Execute_Crawl(void)
Execute stage CRAWL stuff.