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

#include <autonomous_right_5ball.h>

Inheritance diagram for AutonomousRight5ball:
AutonomousCommand

Public Member Functions

 AutonomousRight5ball (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_humanPlayerDelay
 
DelayCommand m_shootDelay
 
DriveToLocation m_driveToBallB
 
DriveToLocation m_driveToBallD
 
DriveToLocation m_driveToFinalShootPosition
 
ShootCommand m_shootOneBall
 
ShootCommand m_shootTwoBall
 
AutoPositionAimCommand m_aimBallB
 
AutoPositionAimCommand m_aimBallD
 
AutoVisionAimCommand m_visionAim
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousRight5ball()

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

Member Function Documentation

◆ End()

void AutonomousRight5ball::End ( bool  interrupted)
override

◆ Execute()

void AutonomousRight5ball::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousRight5ball::Initialize ( )
override

◆ IsFinished()

bool AutonomousRight5ball::IsFinished ( )
override

Member Data Documentation

◆ m_aimBallB

AutoPositionAimCommand AutonomousRight5ball::m_aimBallB
private

◆ m_aimBallD

AutoPositionAimCommand AutonomousRight5ball::m_aimBallD
private

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousRight5ball::m_allCommands
private

◆ m_driveToBallB

DriveToLocation AutonomousRight5ball::m_driveToBallB
private

◆ m_driveToBallD

DriveToLocation AutonomousRight5ball::m_driveToBallD
private

◆ m_driveToFinalShootPosition

DriveToLocation AutonomousRight5ball::m_driveToFinalShootPosition
private

◆ m_humanPlayerDelay

DelayCommand AutonomousRight5ball::m_humanPlayerDelay
private

◆ m_pDrive

SwerveDriveSubsystem* AutonomousRight5ball::m_pDrive
private

◆ m_pIntake

IntakeSubsystem* AutonomousRight5ball::m_pIntake
private

◆ m_pShooter

ShooterSubsystem* AutonomousRight5ball::m_pShooter
private

◆ m_shootDelay

DelayCommand AutonomousRight5ball::m_shootDelay
private

◆ m_shootOneBall

ShootCommand AutonomousRight5ball::m_shootOneBall
private

◆ m_shootTwoBall

ShootCommand AutonomousRight5ball::m_shootTwoBall
private

◆ m_visionAim

AutoVisionAimCommand AutonomousRight5ball::m_visionAim
private

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