2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
AutonomousRight2ball Class Reference

#include <autonomous_right_2ball.h>

Inheritance diagram for AutonomousRight2ball:
AutonomousCommand

Public Member Functions

 AutonomousRight2ball (IntakeSubsystem *pIntake, ShooterSubsystem *pShooter, SwerveDriveSubsystem *pDrive)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 
std::string GetName () const final
 Get the name of the command to display on the dashboard. More...
 
frc2::Command * GetCommand () final
 Get the command to run when selected from dashboard. More...
 
- Public Member Functions inherited from AutonomousCommand
 AutonomousCommand ()=default
 
virtual std::string GetName () const =0
 Get the name of the command to display on the dashboard. More...
 
virtual frc2::Command * GetCommand ()=0
 Get the command to run when selected from dashboard. More...
 

Private Attributes

IntakeSubsystemm_pIntake
 
ShooterSubsystemm_pShooter
 
SwerveDriveSubsystemm_pDrive
 
DelayCommand m_startDelay
 
DriveToLocation m_driveToBallA
 
HomeHoodCommand m_homeHoodCommand
 
IntakeCommand m_intakeCommand
 
ShootCommand m_shootCommand
 
AutoPositionAimCommand m_aimBallA
 
AutoVisionAimCommand m_visionAim
 
InitializeOdometryCommand m_initOdometry
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousRight2ball()

AutonomousRight2ball::AutonomousRight2ball ( IntakeSubsystem pIntake,
ShooterSubsystem pShooter,
SwerveDriveSubsystem pDrive 
)

Member Function Documentation

◆ End()

void AutonomousRight2ball::End ( bool  interrupted)
override

◆ Execute()

void AutonomousRight2ball::Execute ( )
override

◆ GetCommand()

frc2::Command * AutonomousRight2ball::GetCommand ( )
finalvirtual

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

std::string AutonomousRight2ball::GetName ( ) const
finalvirtual

Get the name of the command to display on the dashboard.

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousRight2ball::Initialize ( )
override

◆ IsFinished()

bool AutonomousRight2ball::IsFinished ( )
override

Member Data Documentation

◆ m_aimBallA

AutoPositionAimCommand AutonomousRight2ball::m_aimBallA
private

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousRight2ball::m_allCommands
private

◆ m_driveToBallA

DriveToLocation AutonomousRight2ball::m_driveToBallA
private

◆ m_homeHoodCommand

HomeHoodCommand AutonomousRight2ball::m_homeHoodCommand
private

◆ m_initOdometry

InitializeOdometryCommand AutonomousRight2ball::m_initOdometry
private

◆ m_intakeCommand

IntakeCommand AutonomousRight2ball::m_intakeCommand
private

◆ m_pDrive

SwerveDriveSubsystem* AutonomousRight2ball::m_pDrive
private

◆ m_pIntake

IntakeSubsystem* AutonomousRight2ball::m_pIntake
private

◆ m_pShooter

ShooterSubsystem* AutonomousRight2ball::m_pShooter
private

◆ m_shootCommand

ShootCommand AutonomousRight2ball::m_shootCommand
private

◆ m_startDelay

DelayCommand AutonomousRight2ball::m_startDelay
private

◆ m_visionAim

AutoVisionAimCommand AutonomousRight2ball::m_visionAim
private

The documentation for this class was generated from the following files: