2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_center_right_2ball_delay.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>
14
15#include <string>
16
18#include "autonomous_command.h"
19
21 : public frc2::CommandHelper<frc2::CommandBase, AutonomousCenterRight2ballDelay>
22 , public AutonomousCommand {
23 public:
25
26 void Initialize() override;
27
28 void Execute() override;
29
30 void End(bool interrupted) override;
31
32 bool IsFinished() override;
33
37 std::string GetName() const final;
41 frc2::Command* GetCommand() final;
42
43 private:
47
49
50 frc2::SequentialCommandGroup m_allCommands;
51};
Definition: autonomous_center_right_2ball_delay.h:22
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_center_right_2ball_delay.cpp:44
frc2::SequentialCommandGroup m_allCommands
Definition: autonomous_center_right_2ball_delay.h:50
ShooterSubsystem * m_pShooter
Definition: autonomous_center_right_2ball_delay.h:45
IntakeSubsystem * m_pIntake
Definition: autonomous_center_right_2ball_delay.h:44
void Initialize() override
Definition: autonomous_center_right_2ball_delay.cpp:20
void End(bool interrupted) override
Definition: autonomous_center_right_2ball_delay.cpp:31
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_center_right_2ball_delay.cpp:40
DelayCommand m_startDelay
Definition: autonomous_center_right_2ball_delay.h:48
bool IsFinished() override
Definition: autonomous_center_right_2ball_delay.cpp:36
SwerveDriveSubsystem * m_pDrive
Definition: autonomous_center_right_2ball_delay.h:46
void Execute() override
Definition: autonomous_center_right_2ball_delay.cpp:26
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14
Definition: delay_command.h:13
Controls the Intake of the robot and provides internal ball position state info.
Definition: intake_subsystem.h:24
Definition: shooter_subsystem.h:138
Subsystem for controlling the swerve drivetrain of the robot.
Definition: swerve_drive_subsystem.h:50