2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
climb_command.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/CommandBase.h>
8#include <frc2/command/CommandHelper.h>
9
10#include <queue>
11#include <vector>
12
14
19class ClimbCommand : public frc2::CommandHelper<frc2::CommandBase, ClimbCommand> {
20 public:
21 ClimbCommand(ClimberSubsystem* subsystem, std::vector<ClimberPoint> points);
22
23 void Initialize() override;
24
25 void Execute() override;
26
27 void End(bool interrupted) override;
28
29 bool IsFinished() override;
30
31 private:
33 std::vector<ClimberPoint> m_initPoints;
34 std::queue<ClimberPoint> m_climbPoints;
35};
Works with the climber subsystem to execute a series of setpoints, automating the climb sequence.
Definition: climb_command.h:19
std::vector< ClimberPoint > m_initPoints
Definition: climb_command.h:33
void End(bool interrupted) override
Definition: climb_command.cpp:58
bool IsFinished() override
Definition: climb_command.cpp:69
ClimberSubsystem * m_pClimberSubsystem
Definition: climb_command.h:32
std::queue< ClimberPoint > m_climbPoints
Definition: climb_command.h:34
void Initialize() override
Definition: climb_command.cpp:19
void Execute() override
Definition: climb_command.cpp:42
Controls the climber of the robot.
Definition: climber_subsystem.h:22