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

#include <autonomous_right_5ballDef.h>

Inheritance diagram for AutonomousRight5ballDef:
AutonomousCommand

Public Member Functions

 AutonomousRight5ballDef (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
 
AutonomousRight5ballGap m_5ball
 
DelayCommand m_shootDelay
 
DriveToLocation m_driveToBallF
 
ShootCommand m_shootOneBall
 
AutoPositionAimCommand m_aimBallF
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousRight5ballDef()

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

Member Function Documentation

◆ End()

void AutonomousRight5ballDef::End ( bool  interrupted)
override

◆ Execute()

void AutonomousRight5ballDef::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousRight5ballDef::Initialize ( )
override

◆ IsFinished()

bool AutonomousRight5ballDef::IsFinished ( )
override

Member Data Documentation

◆ m_5ball

AutonomousRight5ballGap AutonomousRight5ballDef::m_5ball
private

◆ m_aimBallF

AutoPositionAimCommand AutonomousRight5ballDef::m_aimBallF
private

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousRight5ballDef::m_allCommands
private

◆ m_driveToBallF

DriveToLocation AutonomousRight5ballDef::m_driveToBallF
private

◆ m_pDrive

SwerveDriveSubsystem* AutonomousRight5ballDef::m_pDrive
private

◆ m_pIntake

IntakeSubsystem* AutonomousRight5ballDef::m_pIntake
private

◆ m_pShooter

ShooterSubsystem* AutonomousRight5ballDef::m_pShooter
private

◆ m_shootDelay

DelayCommand AutonomousRight5ballDef::m_shootDelay
private

◆ m_shootOneBall

ShootCommand AutonomousRight5ballDef::m_shootOneBall
private

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