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

#include <intake_command.h>

Inheritance diagram for IntakeCommand:

Public Member Functions

 IntakeCommand (IntakeSubsystem *intake, ShooterSubsystem *shooter, ElevatorSubsystem *elevator, argos_lib::SwappableControllersSubsystem *controllers, SimpleLedSubsystem *leds, bool endOnNoteAcquisition=false, units::millisecond_t timeout=500_ms)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

IntakeSubsystemm_pIntake
 
ShooterSubsystemm_pShooter
 
ElevatorSubsystemm_pElevator
 
argos_lib::SwappableControllersSubsystemm_pControllers
 
SimpleLedSubsystemm_pLeds
 
bool m_endOnNoteAcquisition
 
units::millisecond_t m_timeout
 
std::chrono::time_point< std::chrono::steady_clock > m_startTime
 

Detailed Description

Constructor & Destructor Documentation

◆ IntakeCommand()

IntakeCommand::IntakeCommand ( IntakeSubsystem intake,
ShooterSubsystem shooter,
ElevatorSubsystem elevator,
argos_lib::SwappableControllersSubsystem controllers,
SimpleLedSubsystem leds,
bool  endOnNoteAcquisition = false,
units::millisecond_t  timeout = 500_ms 
)

Member Function Documentation

◆ End()

void IntakeCommand::End ( bool  interrupted)
override

◆ Execute()

void IntakeCommand::Execute ( )
override

◆ Initialize()

void IntakeCommand::Initialize ( )
override

◆ IsFinished()

bool IntakeCommand::IsFinished ( )
override

Member Data Documentation

◆ m_endOnNoteAcquisition

bool IntakeCommand::m_endOnNoteAcquisition
private

◆ m_pControllers

argos_lib::SwappableControllersSubsystem* IntakeCommand::m_pControllers
private

◆ m_pElevator

ElevatorSubsystem* IntakeCommand::m_pElevator
private

◆ m_pIntake

IntakeSubsystem* IntakeCommand::m_pIntake
private

◆ m_pLeds

SimpleLedSubsystem* IntakeCommand::m_pLeds
private

◆ m_pShooter

ShooterSubsystem* IntakeCommand::m_pShooter
private

◆ m_startTime

std::chrono::time_point<std::chrono::steady_clock> IntakeCommand::m_startTime
private

◆ m_timeout

units::millisecond_t IntakeCommand::m_timeout
private

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