DeepSpace  2019
AutoClimbHigh.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef _AUTOCLIMBHIGH_HG_
9 #define _AUTOCLIMBHIGH_HG_
10 
11 #include <frc/commands/Command.h>
12 #include <frc/Timer.h>
13 
14 class AutoClimbHigh : public frc::Command {
15 public:
16  AutoClimbHigh();
17  void Initialize() override;
18  void Execute() override;
19  bool IsFinished() override;
20  void End() override;
21  void Interrupted() override;
22  void Execute_LowerArm(void);
23  void Execute_LowerLeg(void);
24  void Execute_Crawl(void);
25  void Execute_Drive(void);
26  void Execute_Raiseleg(void);
27  bool IsClimbing() ;
28 private:
33  enum Stage : uint8_t {
40  } stage ;
41 
42  frc::Timer* pTimer;
43  bool onFloor ;
44  bool climbing ;
45 };
46 
47 #endif /* _AUTOCLIMBHIGH_HG_ */
void Execute_LowerLeg(void)
Execute stage LOWER_LEG stuff.
frc::Timer * pTimer
Timer for timing out stages if it takes too long.
Definition: AutoClimbHigh.h:42
void Execute_LowerArm(void)
Execute stage LOWER_ARM stuff.
bool IsFinished() override
void Initialize() override
void Execute_Drive(void)
Execute stage DRIVE stuff.
Stage
Enum for tracking which stage of climb the robot is on The stage is changed in the Execute_<Stage>() ...
Definition: AutoClimbHigh.h:33
bool IsClimbing()
Returns whether the robot is in the middle of climbing.
void End() override
void Execute_Raiseleg(void)
Execute stage RAISE_LEG stuff.
enum AutoClimbHigh::Stage stage
void Execute() override
Switch checks the stage and then calls the appropriate Execute_<Stage>() function.
bool climbing
Bool for tracking whether the robot is in the middle of auto climb.
Definition: AutoClimbHigh.h:44
void Interrupted() override
bool onFloor
Bool for tracking whether the robot is off the floor or not.
Definition: AutoClimbHigh.h:43
void Execute_Crawl(void)
Execute stage CRAWL stuff.