2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_zero_note.h
Go to the documentation of this file.
1
4
5#pragma once
6
8#include <frc2/command/Command.h>
9#include <frc2/command/CommandHelper.h>
10#include <frc2/command/SequentialCommandGroup.h>
11
12#include <string>
13
16
18 : public frc2::CommandHelper<frc2::Command, AutonomousZeroNote>
19 , public AutonomousCommand {
20 public:
22
23 void Initialize() override;
24
25 void Execute() override;
26
27 void End(bool interrupted) override;
28
29 bool IsFinished() override;
30
34 std::string GetName() const final;
38 frc2::Command* GetCommand() final;
39
40 private:
42 frc2::SequentialCommandGroup m_commands;
43};
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition autonomous_zero_note.h:19
void Execute() override
Definition autonomous_zero_note.cpp:23
frc2::SequentialCommandGroup m_commands
Definition autonomous_zero_note.h:42
bool IsFinished() override
Definition autonomous_zero_note.cpp:33
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_zero_note.cpp:41
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_zero_note.cpp:37
void Initialize() override
Definition autonomous_zero_note.cpp:18
SwerveDriveSubsystem & m_Swerve
Definition autonomous_zero_note.h:41
void End(bool interrupted) override
Definition autonomous_zero_note.cpp:28
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:67