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

#include <score_cone_command.h>

Inheritance diagram for ScoreConeCommand:

Public Member Functions

 ScoreConeCommand (LifterSubsystem &lifter, BashGuardSubsystem &bash, IntakeSubsystem &intake)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Static Private Member Functions

static frc::Translation2d GetRelativePose (const frc::Translation2d &initPosition, units::inch_t xOffset, units::inch_t zOffset)
 

Private Attributes

LifterSubsystemm_lifter
 
IntakeSubsystemm_intake
 
BashGuardSubsystemm_bash
 
frc2::InstantCommand m_retractIntake
 
frc2::CommandPtr m_allCommands
 

Detailed Description

Note that this extends CommandHelper, rather extending CommandBase directly; this is crucially important, or else the decorator functions in Command will not work!

Constructor & Destructor Documentation

◆ ScoreConeCommand()

ScoreConeCommand::ScoreConeCommand ( LifterSubsystem lifter,
BashGuardSubsystem bash,
IntakeSubsystem intake 
)

Member Function Documentation

◆ End()

void ScoreConeCommand::End ( bool  interrupted)
override

◆ Execute()

void ScoreConeCommand::Execute ( )
override

◆ GetRelativePose()

static frc::Translation2d ScoreConeCommand::GetRelativePose ( const frc::Translation2d &  initPosition,
units::inch_t  xOffset,
units::inch_t  zOffset 
)
inlinestaticprivate

◆ Initialize()

void ScoreConeCommand::Initialize ( )
override

◆ IsFinished()

bool ScoreConeCommand::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::CommandPtr ScoreConeCommand::m_allCommands
private

◆ m_bash

BashGuardSubsystem& ScoreConeCommand::m_bash
private

◆ m_intake

IntakeSubsystem& ScoreConeCommand::m_intake
private

◆ m_lifter

LifterSubsystem& ScoreConeCommand::m_lifter
private

◆ m_retractIntake

frc2::InstantCommand ScoreConeCommand::m_retractIntake
private

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