2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_right_5ball_gap.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, AutonomousRight5ballGap>
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
52 // AutonomousRight2ball m_2ball;
64
65 frc2::SequentialCommandGroup m_allCommandsBlue;
66 frc2::SequentialCommandGroup m_allCommandsRed;
67 frc2::SequentialCommandGroup* m_commandSet;
68};
Definition: auto_position_aim_command.h:16
Definition: auto_vision_aim_command.h:13
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14
Definition: autonomous_right_5ball_gap.h:26
DelayCommand m_shootDelay
Definition: autonomous_right_5ball_gap.h:54
DriveToLocation m_driveToBallD
Definition: autonomous_right_5ball_gap.h:56
void End(bool interrupted) override
Definition: autonomous_right_5ball_gap.cpp:111
ShootCommand m_shootOneBall
Definition: autonomous_right_5ball_gap.h:59
frc2::SequentialCommandGroup * m_commandSet
Definition: autonomous_right_5ball_gap.h:67
void Execute() override
Definition: autonomous_right_5ball_gap.cpp:106
DriveToLocation m_driveBackFromTerminal
Definition: autonomous_right_5ball_gap.h:57
ShooterSubsystem * m_pShooter
Definition: autonomous_right_5ball_gap.h:49
IntakeSubsystem * m_pIntake
Definition: autonomous_right_5ball_gap.h:48
AutoVisionAimCommand m_visionAim
Definition: autonomous_right_5ball_gap.h:63
SwerveDriveSubsystem * m_pDrive
Definition: autonomous_right_5ball_gap.h:50
void Initialize() override
Definition: autonomous_right_5ball_gap.cpp:97
frc2::SequentialCommandGroup m_allCommandsBlue
Definition: autonomous_right_5ball_gap.h:65
AutoPositionAimCommand m_aimBallD
Definition: autonomous_right_5ball_gap.h:62
ShootCommand m_shootTwoBall
Definition: autonomous_right_5ball_gap.h:60
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_right_5ball_gap.cpp:124
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_right_5ball_gap.cpp:120
AutoPositionAimCommand m_aimBallB
Definition: autonomous_right_5ball_gap.h:61
bool IsFinished() override
Definition: autonomous_right_5ball_gap.cpp:116
DriveToLocation m_driveToBallB
Definition: autonomous_right_5ball_gap.h:55
DriveToLocation m_driveToFinalShootPosition
Definition: autonomous_right_5ball_gap.h:58
frc2::SequentialCommandGroup m_allCommandsRed
Definition: autonomous_right_5ball_gap.h:66
DelayCommand m_humanPlayerDelay
Definition: autonomous_right_5ball_gap.h:53
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