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

#include <autonomous_L1_FE.h>

Inheritance diagram for AutonomousL1FE:
AutonomousCommand

Public Member Functions

 AutonomousL1FE (ElevatorSubsystem &elevator, IntakeSubsystem &intake, SwerveDriveSubsystem &swerve, VisionSubsystem &vision)
 
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

ElevatorSubsystemm_Elevator
 
IntakeSubsystemm_Intake
 
SwerveDriveSubsystemm_Swerve
 
VisionSubsystemm_Vision
 
std::function< void(ArmPosition)> m_armPositionEventCallback
 
frc2::SequentialCommandGroup m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ AutonomousL1FE()

AutonomousL1FE::AutonomousL1FE ( ElevatorSubsystem & elevator,
IntakeSubsystem & intake,
SwerveDriveSubsystem & swerve,
VisionSubsystem & vision )

Member Function Documentation

◆ End()

void AutonomousL1FE::End ( bool interrupted)
override

◆ Execute()

void AutonomousL1FE::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutonomousL1FE::Initialize ( )
override

◆ IsFinished()

bool AutonomousL1FE::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::SequentialCommandGroup AutonomousL1FE::m_allCommands
private

◆ m_armPositionEventCallback

std::function<void(ArmPosition)> AutonomousL1FE::m_armPositionEventCallback
private

◆ m_Elevator

ElevatorSubsystem& AutonomousL1FE::m_Elevator
private

◆ m_Intake

IntakeSubsystem& AutonomousL1FE::m_Intake
private

◆ m_Swerve

SwerveDriveSubsystem& AutonomousL1FE::m_Swerve
private

◆ m_Vision

VisionSubsystem& AutonomousL1FE::m_Vision
private

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