2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_right_5ball.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, AutonomousRight5ball>
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;
63
64 frc2::SequentialCommandGroup m_allCommands;
65};
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.h:26
SwerveDriveSubsystem * m_pDrive
Definition: autonomous_right_5ball.h:50
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_right_5ball.cpp:81
DelayCommand m_humanPlayerDelay
Definition: autonomous_right_5ball.h:53
DelayCommand m_shootDelay
Definition: autonomous_right_5ball.h:54
ShootCommand m_shootTwoBall
Definition: autonomous_right_5ball.h:59
frc2::SequentialCommandGroup m_allCommands
Definition: autonomous_right_5ball.h:64
DriveToLocation m_driveToFinalShootPosition
Definition: autonomous_right_5ball.h:57
bool IsFinished() override
Definition: autonomous_right_5ball.cpp:77
DriveToLocation m_driveToBallB
Definition: autonomous_right_5ball.h:55
void Execute() override
Definition: autonomous_right_5ball.cpp:67
void Initialize() override
Definition: autonomous_right_5ball.cpp:61
AutoPositionAimCommand m_aimBallD
Definition: autonomous_right_5ball.h:61
void End(bool interrupted) override
Definition: autonomous_right_5ball.cpp:72
AutoVisionAimCommand m_visionAim
Definition: autonomous_right_5ball.h:62
AutoPositionAimCommand m_aimBallB
Definition: autonomous_right_5ball.h:60
DriveToLocation m_driveToBallD
Definition: autonomous_right_5ball.h:56
ShooterSubsystem * m_pShooter
Definition: autonomous_right_5ball.h:49
IntakeSubsystem * m_pIntake
Definition: autonomous_right_5ball.h:48
ShootCommand m_shootOneBall
Definition: autonomous_right_5ball.h:58
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_right_5ball.cpp:85
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