2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_drive_forward.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
20 : public frc2::CommandHelper<frc2::CommandBase, AutonomousDriveForward>
21 , public AutonomousCommand {
22 public:
25 LifterSubsystem& lifter,
27 IntakeSubsystem& intake);
28
29 void Initialize() override;
30
31 void Execute() override;
32
33 void End(bool interrupted) override;
34
35 bool IsFinished() override;
36
40 std::string GetName() const final;
44 frc2::Command* GetCommand() final;
45
46 private:
52
53 frc2::SequentialCommandGroup m_allCommands;
54};
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition autonomous_drive_forward.h:21
void Execute() override
Definition autonomous_drive_forward.cpp:44
BashGuardSubsystem & m_bashGuard
Definition autonomous_drive_forward.h:48
bool IsFinished() override
Definition autonomous_drive_forward.cpp:54
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_drive_forward.cpp:58
void End(bool interrupted) override
Definition autonomous_drive_forward.cpp:49
SimpleLedSubsystem & m_leds
Definition autonomous_drive_forward.h:50
LifterSubsystem & m_lifter
Definition autonomous_drive_forward.h:49
SwerveDriveSubsystem & m_drive
Definition autonomous_drive_forward.h:47
void Initialize() override
Definition autonomous_drive_forward.cpp:38
IntakeSubsystem & m_intake
Definition autonomous_drive_forward.h:51
frc2::SequentialCommandGroup m_allCommands
Definition autonomous_drive_forward.h:53
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_drive_forward.cpp:62
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