2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_center_right_2ball.h
Go to the documentation of this file.
1
4
5#pragma once
6
15#include <frc2/command/CommandBase.h>
16#include <frc2/command/CommandHelper.h>
17#include <frc2/command/SequentialCommandGroup.h>
21
22#include <string>
23
24#include "autonomous_command.h"
25
27 : public frc2::CommandHelper<frc2::CommandBase, AutonomousCenterRight2ball>
28 , public AutonomousCommand {
29 public:
31
32 void Initialize() override;
33
34 void Execute() override;
35
36 void End(bool interrupted) override;
37
38 bool IsFinished() override;
39
43 std::string GetName() const final;
47 frc2::Command* GetCommand() final;
48
49 private:
53
62
63 frc2::SequentialCommandGroup m_allCommands;
64};
Definition: auto_position_aim_command.h:16
Definition: auto_vision_aim_command.h:13
Definition: autonomous_center_right_2ball.h:28
bool IsFinished() override
Definition: autonomous_center_right_2ball.cpp:59
SwerveDriveSubsystem * m_pDrive
Definition: autonomous_center_right_2ball.h:52
DriveToLocation m_driveToBallB
Definition: autonomous_center_right_2ball.h:55
void Execute() override
Definition: autonomous_center_right_2ball.cpp:49
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_center_right_2ball.cpp:67
void Initialize() override
Definition: autonomous_center_right_2ball.cpp:43
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_center_right_2ball.cpp:63
IntakeSubsystem * m_pIntake
Definition: autonomous_center_right_2ball.h:50
ShootCommand m_shootCommand
Definition: autonomous_center_right_2ball.h:58
InitializeOdometryCommand m_initOdometry
Definition: autonomous_center_right_2ball.h:61
ShooterSubsystem * m_pShooter
Definition: autonomous_center_right_2ball.h:51
IntakeCommand m_intakeCommand
Definition: autonomous_center_right_2ball.h:57
AutoVisionAimCommand m_visionAim
Definition: autonomous_center_right_2ball.h:60
DelayCommand m_startDelay
Definition: autonomous_center_right_2ball.h:54
void End(bool interrupted) override
Definition: autonomous_center_right_2ball.cpp:54
frc2::SequentialCommandGroup m_allCommands
Definition: autonomous_center_right_2ball.h:63
AutoPositionAimCommand m_aimBallB
Definition: autonomous_center_right_2ball.h:59
HomeHoodCommand m_homeHoodCommand
Definition: autonomous_center_right_2ball.h:56
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14
Definition: delay_command.h:13
Definition: drive_to_location.h:15
Moves hood slowly down, until hitting a known position then resets relative positioning.
Definition: home_hood_command.h:19
Definition: initialize_odometry_command.h:13
Definition: intake_command.h:19
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