2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_right_5ballDef.h
Go to the documentation of this file.
1
4
5#pragma once
6
13#include <frc2/command/CommandBase.h>
14#include <frc2/command/CommandHelper.h>
15#include <frc2/command/SequentialCommandGroup.h>
18
19#include <string>
20
21#include "autonomous_command.h"
23
25 : public frc2::CommandHelper<frc2::CommandBase, AutonomousRight5ballDef>
26 , public AutonomousCommand {
27 public:
29
30 void Initialize() override;
31
32 void Execute() override;
33
34 void End(bool interrupted) override;
35
36 bool IsFinished() override;
37
41 std::string GetName() const final;
45 frc2::Command* GetCommand() final;
46
47 private:
51
57
58 frc2::SequentialCommandGroup m_allCommands;
59};
Definition: auto_position_aim_command.h:16
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14
Definition: autonomous_right_5ballDef.h:26
DelayCommand m_shootDelay
Definition: autonomous_right_5ballDef.h:53
frc2::SequentialCommandGroup m_allCommands
Definition: autonomous_right_5ballDef.h:58
void Initialize() override
Definition: autonomous_right_5ballDef.cpp:37
bool IsFinished() override
Definition: autonomous_right_5ballDef.cpp:53
void End(bool interrupted) override
Definition: autonomous_right_5ballDef.cpp:48
AutoPositionAimCommand m_aimBallF
Definition: autonomous_right_5ballDef.h:56
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_right_5ballDef.cpp:57
DriveToLocation m_driveToBallF
Definition: autonomous_right_5ballDef.h:54
ShooterSubsystem * m_pShooter
Definition: autonomous_right_5ballDef.h:49
IntakeSubsystem * m_pIntake
Definition: autonomous_right_5ballDef.h:48
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_right_5ballDef.cpp:61
AutonomousRight5ballGap m_5ball
Definition: autonomous_right_5ballDef.h:52
void Execute() override
Definition: autonomous_right_5ballDef.cpp:43
SwerveDriveSubsystem * m_pDrive
Definition: autonomous_right_5ballDef.h:50
ShootCommand m_shootOneBall
Definition: autonomous_right_5ballDef.h:55
Definition: autonomous_right_5ball_gap.h:26
Definition: delay_command.h:13
Definition: drive_to_location.h:15
Controls the Intake of the robot and provides internal ball position state info.
Definition: intake_subsystem.h:24
Definition: shoot_command.h:15
Definition: shooter_subsystem.h:138
Subsystem for controlling the swerve drivetrain of the robot.
Definition: swerve_drive_subsystem.h:50