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

#include <autonomous_center_left_2ball_defense.h>

Inheritance diagram for AutonomousCenterLeft2ballDefense:
AutonomousCommand

Public Member Functions

 AutonomousCenterLeft2ballDefense (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_driveToBallC
 
DriveToLocation m_driveDefenseRight
 
DriveToLocation m_driveDefenseLeft
 
HomeHoodCommand m_homeHoodCommand
 
IntakeCommand m_intakeCommand
 
ShootCommand m_shootCommand
 
AutoPositionAimCommand m_aimBallC
 
AutoPositionAimCommand m_aimDefenseBottom
 
AutoVisionAimCommand m_visionAim
 
InitializeOdometryCommand m_initOdometry
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousCenterLeft2ballDefense()

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

Member Function Documentation

◆ End()

void AutonomousCenterLeft2ballDefense::End ( bool  interrupted)
override

◆ Execute()

void AutonomousCenterLeft2ballDefense::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousCenterLeft2ballDefense::Initialize ( )
override

◆ IsFinished()

bool AutonomousCenterLeft2ballDefense::IsFinished ( )
override

Member Data Documentation

◆ m_aimBallC

AutoPositionAimCommand AutonomousCenterLeft2ballDefense::m_aimBallC
private

◆ m_aimDefenseBottom

AutoPositionAimCommand AutonomousCenterLeft2ballDefense::m_aimDefenseBottom
private

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousCenterLeft2ballDefense::m_allCommands
private

◆ m_driveDefenseLeft

DriveToLocation AutonomousCenterLeft2ballDefense::m_driveDefenseLeft
private

◆ m_driveDefenseRight

DriveToLocation AutonomousCenterLeft2ballDefense::m_driveDefenseRight
private

◆ m_driveToBallC

DriveToLocation AutonomousCenterLeft2ballDefense::m_driveToBallC
private

◆ m_homeHoodCommand

HomeHoodCommand AutonomousCenterLeft2ballDefense::m_homeHoodCommand
private

◆ m_initOdometry

InitializeOdometryCommand AutonomousCenterLeft2ballDefense::m_initOdometry
private

◆ m_intakeCommand

IntakeCommand AutonomousCenterLeft2ballDefense::m_intakeCommand
private

◆ m_pDrive

SwerveDriveSubsystem* AutonomousCenterLeft2ballDefense::m_pDrive
private

◆ m_pIntake

IntakeSubsystem* AutonomousCenterLeft2ballDefense::m_pIntake
private

◆ m_pShooter

ShooterSubsystem* AutonomousCenterLeft2ballDefense::m_pShooter
private

◆ m_shootCommand

ShootCommand AutonomousCenterLeft2ballDefense::m_shootCommand
private

◆ m_startDelay

DelayCommand AutonomousCenterLeft2ballDefense::m_startDelay
private

◆ m_visionAim

AutoVisionAimCommand AutonomousCenterLeft2ballDefense::m_visionAim
private

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