2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
AutonomousCableProtector2Gp Class Reference

#include <autonomous_cable_protector_2gp.h>

Inheritance diagram for AutonomousCableProtector2Gp:
AutonomousCommand

Public Member Functions

 AutonomousCableProtector2Gp (SwerveDriveSubsystem &drive, BashGuardSubsystem &bash, LifterSubsystem &lifter, IntakeSubsystem &intake, SimpleLedSubsystem &leds)
 
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.
 
frc2::Command * GetCommand () final
 Get the command to run when selected from dashboard.
 
- Public Member Functions inherited from AutonomousCommand
 AutonomousCommand ()=default
 

Private Attributes

SwerveDriveSubsystemm_drive
 
BashGuardSubsystemm_bashGuard
 
LifterSubsystemm_lifter
 
IntakeSubsystemm_intake
 
SimpleLedSubsystemm_leds
 
frc2::CommandPtr m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousCableProtector2Gp()

AutonomousCableProtector2Gp::AutonomousCableProtector2Gp ( SwerveDriveSubsystem drive,
BashGuardSubsystem bash,
LifterSubsystem lifter,
IntakeSubsystem intake,
SimpleLedSubsystem leds 
)

Member Function Documentation

◆ End()

void AutonomousCableProtector2Gp::End ( bool  interrupted)
override

◆ Execute()

void AutonomousCableProtector2Gp::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousCableProtector2Gp::Initialize ( )
override

◆ IsFinished()

bool AutonomousCableProtector2Gp::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::CommandPtr AutonomousCableProtector2Gp::m_allCommands
private

◆ m_bashGuard

BashGuardSubsystem& AutonomousCableProtector2Gp::m_bashGuard
private

◆ m_drive

SwerveDriveSubsystem& AutonomousCableProtector2Gp::m_drive
private

◆ m_intake

IntakeSubsystem& AutonomousCableProtector2Gp::m_intake
private

◆ m_leds

SimpleLedSubsystem& AutonomousCableProtector2Gp::m_leds
private

◆ m_lifter

LifterSubsystem& AutonomousCableProtector2Gp::m_lifter
private

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