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

#include <place_cone_command.h>

Inheritance diagram for PlaceConeCommand:
AutonomousCommand

Public Member Functions

 PlaceConeCommand (BashGuardSubsystem *bash, LifterSubsystem *lifter, IntakeSubsystem *intake, frc::Translation2d desiredArmPos, ScoringPosition scoringPos)
 
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
 

Static Private Member Functions

static units::degree_t GetShoulderAngle (const LifterSubsystem &lifter, const frc::Translation2d &pose)
 

Private Attributes

BashGuardSubsystemm_bashGuard
 
LifterSubsystemm_lifter
 
IntakeSubsystemm_intake
 
frc::Translation2d m_desiredArmPos
 
ScoringPosition m_scoringPosition
 
frc2::CommandPtr m_allCommands
 

Detailed Description

Constructor & Destructor Documentation

◆ PlaceConeCommand()

PlaceConeCommand::PlaceConeCommand ( BashGuardSubsystem bash,
LifterSubsystem lifter,
IntakeSubsystem intake,
frc::Translation2d  m_desiredArmPos,
ScoringPosition  scoringPos 
)

Member Function Documentation

◆ End()

void PlaceConeCommand::End ( bool  interrupted)
override

◆ Execute()

void PlaceConeCommand::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ GetShoulderAngle()

static units::degree_t PlaceConeCommand::GetShoulderAngle ( const LifterSubsystem lifter,
const frc::Translation2d &  pose 
)
inlinestaticprivate

◆ Initialize()

void PlaceConeCommand::Initialize ( )
override

◆ IsFinished()

bool PlaceConeCommand::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::CommandPtr PlaceConeCommand::m_allCommands
private

◆ m_bashGuard

BashGuardSubsystem* PlaceConeCommand::m_bashGuard
private

◆ m_desiredArmPos

frc::Translation2d PlaceConeCommand::m_desiredArmPos
private

◆ m_intake

IntakeSubsystem* PlaceConeCommand::m_intake
private

◆ m_lifter

LifterSubsystem* PlaceConeCommand::m_lifter
private

◆ m_scoringPosition

ScoringPosition PlaceConeCommand::m_scoringPosition
private

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