2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_loading_station_3gp.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
11#include <string>
12
19
21 : public frc2::CommandHelper<frc2::CommandBase, AutonomousLoadingStation3GP>
22 , public AutonomousCommand {
23 public:
26 LifterSubsystem& lifter,
27 IntakeSubsystem& intake,
29 OuiOuiPlacerSubsystem& placer);
30
31 void Initialize() override;
32
33 void Execute() override;
34
35 void End(bool interrupted) override;
36
37 bool IsFinished() override;
38
42 std::string GetName() const final;
46 frc2::Command* GetCommand() final;
47
48 private:
55
56 frc2::CommandPtr m_allCommands;
57};
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition autonomous_loading_station_3gp.h:22
SwerveDriveSubsystem & m_drive
Definition autonomous_loading_station_3gp.h:49
OuiOuiPlacerSubsystem & m_placer
Definition autonomous_loading_station_3gp.h:54
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_loading_station_3gp.cpp:266
void Initialize() override
Definition autonomous_loading_station_3gp.cpp:36
void End(bool interrupted) override
Definition autonomous_loading_station_3gp.cpp:250
SimpleLedSubsystem & m_leds
Definition autonomous_loading_station_3gp.h:53
BashGuardSubsystem & m_bashGuard
Definition autonomous_loading_station_3gp.h:50
frc2::CommandPtr m_allCommands
Definition autonomous_loading_station_3gp.h:56
void Execute() override
Definition autonomous_loading_station_3gp.cpp:245
bool IsFinished() override
Definition autonomous_loading_station_3gp.cpp:257
IntakeSubsystem & m_intake
Definition autonomous_loading_station_3gp.h:52
LifterSubsystem & m_lifter
Definition autonomous_loading_station_3gp.h:51
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_loading_station_3gp.cpp:262
Definition bash_guard_subsystem.h:14
Definition intake_subsystem.h:17
Definition lifter_subsystem.h:26
Definition oui_oui_placer_subsystem.h:13
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