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

#include <autonomous_drive_forward.h>

Inheritance diagram for AutonomousDriveForward:
AutonomousCommand

Public Member Functions

 AutonomousDriveForward (SwerveDriveSubsystem &drive, BashGuardSubsystem &bash, LifterSubsystem &lifter, SimpleLedSubsystem &leds, IntakeSubsystem &intake)
 
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
 
SimpleLedSubsystemm_leds
 
IntakeSubsystemm_intake
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousDriveForward()

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

Member Function Documentation

◆ End()

void AutonomousDriveForward::End ( bool  interrupted)
override

◆ Execute()

void AutonomousDriveForward::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousDriveForward::Initialize ( )
override

◆ IsFinished()

bool AutonomousDriveForward::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousDriveForward::m_allCommands
private

◆ m_bashGuard

BashGuardSubsystem& AutonomousDriveForward::m_bashGuard
private

◆ m_drive

SwerveDriveSubsystem& AutonomousDriveForward::m_drive
private

◆ m_intake

IntakeSubsystem& AutonomousDriveForward::m_intake
private

◆ m_leds

SimpleLedSubsystem& AutonomousDriveForward::m_leds
private

◆ m_lifter

LifterSubsystem& AutonomousDriveForward::m_lifter
private

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