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

#include <shoot_command.h>

Inheritance diagram for ShootCommand:

Public Member Functions

 ShootCommand (IntakeSubsystem *subsystem)
 
 ShootCommand (IntakeSubsystem *subsystem, uint numCargo, units::millisecond_t timeout)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

IntakeSubsystemm_pIntake
 
bool m_previousBallPresent
 
uint m_totalCargo
 Total cargo we expect to shoot. 0 indicates shoot until timeout. More...
 
uint m_cargoShot
 Cargo shot so far. More...
 
std::chrono::time_point< std::chrono::steady_clock > m_startTime
 When the command began. More...
 
units::millisecond_t m_timeout
 0 indicates no timeout More...
 

Detailed Description

Constructor & Destructor Documentation

◆ ShootCommand() [1/2]

ShootCommand::ShootCommand ( IntakeSubsystem subsystem)
explicit

◆ ShootCommand() [2/2]

ShootCommand::ShootCommand ( IntakeSubsystem subsystem,
uint  numCargo,
units::millisecond_t  timeout 
)

Member Function Documentation

◆ End()

void ShootCommand::End ( bool  interrupted)
override

◆ Execute()

void ShootCommand::Execute ( )
override

◆ Initialize()

void ShootCommand::Initialize ( )
override

◆ IsFinished()

bool ShootCommand::IsFinished ( )
override

Member Data Documentation

◆ m_cargoShot

uint ShootCommand::m_cargoShot
private

Cargo shot so far.

◆ m_pIntake

IntakeSubsystem* ShootCommand::m_pIntake
private

◆ m_previousBallPresent

bool ShootCommand::m_previousBallPresent
private

◆ m_startTime

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

When the command began.

◆ m_timeout

units::millisecond_t ShootCommand::m_timeout
private

0 indicates no timeout

◆ m_totalCargo

uint ShootCommand::m_totalCargo
private

Total cargo we expect to shoot. 0 indicates shoot until timeout.


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