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

#include <autonomous_cable_protector_slam_grab_balance.h>

Inheritance diagram for AutoCableProtectSlamGrabBalance:
AutonomousCommand

Public Member Functions

 AutoCableProtectSlamGrabBalance (SwerveDriveSubsystem &drive, SimpleLedSubsystem &leds, OuiOuiPlacerSubsystem &ouiOui, LifterSubsystem &lifter, BashGuardSubsystem &bash, IntakeSubsystem &intake)
 
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

SwerveDriveSubsystemm_drive
 
SimpleLedSubsystemm_leds
 
OuiOuiPlacerSubsystemm_ouiOui
 
LifterSubsystemm_lifter
 
BashGuardSubsystemm_bash
 
IntakeSubsystemm_intake
 
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

◆ AutoCableProtectSlamGrabBalance()

AutoCableProtectSlamGrabBalance::AutoCableProtectSlamGrabBalance ( SwerveDriveSubsystem drive,
SimpleLedSubsystem leds,
OuiOuiPlacerSubsystem ouiOui,
LifterSubsystem lifter,
BashGuardSubsystem bash,
IntakeSubsystem intake 
)

Member Function Documentation

◆ End()

void AutoCableProtectSlamGrabBalance::End ( bool  interrupted)
override

◆ Execute()

void AutoCableProtectSlamGrabBalance::Execute ( )
override

◆ GetCommand()

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

Get the command to run when selected from dashboard.

Returns
frc2::Command* Command to run

Implements AutonomousCommand.

◆ GetName()

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

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

Returns
std::string Name to display

Implements AutonomousCommand.

◆ Initialize()

void AutoCableProtectSlamGrabBalance::Initialize ( )
override

◆ IsFinished()

bool AutoCableProtectSlamGrabBalance::IsFinished ( )
override

Member Data Documentation

◆ m_allCommands

frc2::CommandPtr AutoCableProtectSlamGrabBalance::m_allCommands
private

◆ m_bash

BashGuardSubsystem& AutoCableProtectSlamGrabBalance::m_bash
private

◆ m_drive

SwerveDriveSubsystem& AutoCableProtectSlamGrabBalance::m_drive
private

◆ m_intake

IntakeSubsystem& AutoCableProtectSlamGrabBalance::m_intake
private

◆ m_leds

SimpleLedSubsystem& AutoCableProtectSlamGrabBalance::m_leds
private

◆ m_lifter

LifterSubsystem& AutoCableProtectSlamGrabBalance::m_lifter
private

◆ m_ouiOui

OuiOuiPlacerSubsystem& AutoCableProtectSlamGrabBalance::m_ouiOui
private

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