4 #include <frc/commands/Scheduler.h> 20 if ( (this->
pJoyOp->GetPOV() == 270) && (this->
pJoyOp->GetStickButtonPressed(GenericHID::kRightHand)) ) {
27 Log(
"Auto climb is being cancled");
33 Log(
"Auto climb starting");
38 else if ( (this->
pJoyOp->GetPOV() == 90) && (this->
pJoyOp->GetStickButtonPressed(GenericHID::kRightHand)) ) {
45 Log(
"Manual climb is being cancled");
51 Log(
"Manual climb starting");
79 this->
pJoyOp->SetRumble(frc::GenericHID::RumbleType::kLeftRumble, 0.0);
80 this->
pJoyOp->SetRumble(frc::GenericHID::RumbleType::kRightRumble, 0.0);
85 this->
pJoyOp->SetRumble(frc::GenericHID::RumbleType::kLeftRumble, 0.5);
88 this->
pJoyOp->SetRumble(frc::GenericHID::RumbleType::kRightRumble, 0.5);
void Interrupted() override
Runs once if the command is forced to stop.
frc::XboxController * GetJoystickOperator(void)
void Log(std::string message)
Main robot class that is called by wpilib.
bool IsFinished() override
void End() override
Runs once when IsFinished() returns true.
void UpdateRumble(void)
Updates whether the controller should be rumbleing or not.
ClimbManager()
Class constructor.
frc::XboxController * pJoyOp
static OI * m_oi
Pointer for the Operator Interface (OI)
void Execute() override
Called in a loop during Teleop.
static ClimbState CurrentClimbState
void Initialize() override
Runs once on initalization.