2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_cable_protector_place_exit.h
Go to the documentation of this file.
1
4
5#pragma once
6
8#include <frc2/command/CommandBase.h>
9#include <frc2/command/CommandHelper.h>
10#include <frc2/command/SequentialCommandGroup.h>
16
17#include <string>
18
27 : public frc2::CommandHelper<frc2::CommandBase, AutonomousCableProtectorPlaceExit>
28 , public AutonomousCommand {
29 public:
32 LifterSubsystem& lifter,
34 IntakeSubsystem& intake);
35
36 void Initialize() override;
37
38 void Execute() override;
39
40 void End(bool interrupted) override;
41
42 bool IsFinished() override;
43
47 std::string GetName() const final;
51 frc2::Command* GetCommand() final;
52
53 private:
59
60 frc2::CommandPtr m_allCommands;
61};
Definition autonomous_cable_protector_place_exit.h:28
void End(bool interrupted) override
Definition autonomous_cable_protector_place_exit.cpp:68
SwerveDriveSubsystem & m_drive
Definition autonomous_cable_protector_place_exit.h:54
BashGuardSubsystem & m_bashGuard
Definition autonomous_cable_protector_place_exit.h:55
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_cable_protector_place_exit.cpp:81
bool IsFinished() override
Definition autonomous_cable_protector_place_exit.cpp:73
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_cable_protector_place_exit.cpp:77
IntakeSubsystem & m_intake
Definition autonomous_cable_protector_place_exit.h:58
frc2::CommandPtr m_allCommands
Definition autonomous_cable_protector_place_exit.h:60
void Initialize() override
Definition autonomous_cable_protector_place_exit.cpp:57
SimpleLedSubsystem & m_leds
Definition autonomous_cable_protector_place_exit.h:57
LifterSubsystem & m_lifter
Definition autonomous_cable_protector_place_exit.h:56
void Execute() override
Definition autonomous_cable_protector_place_exit.cpp:63
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition bash_guard_subsystem.h:14
Definition intake_subsystem.h:17
Definition lifter_subsystem.h:26
Definition simple_led_subsystem.h:25
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56
Definition Constants.h:69