|
2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
|
#include <autonomous_only_balance.h>
Public Member Functions | |
| AutonomousOnlyBalance (SwerveDriveSubsystem &drive, BashGuardSubsystem &bash, LifterSubsystem &lifter, SimpleLedSubsystem &leds, 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 | |
| SwerveDriveSubsystem & | m_drive |
| BashGuardSubsystem & | m_bashGuard |
| LifterSubsystem & | m_lifter |
| SimpleLedSubsystem & | m_leds |
| IntakeSubsystem & | m_intake |
| frc2::CommandPtr | m_allCommands |
Note that this extends CommandHelper, rather extending CommandBase directly; this is crucially important, or else the decorator functions in Command will not work!
| AutonomousOnlyBalance::AutonomousOnlyBalance | ( | SwerveDriveSubsystem & | drive, |
| BashGuardSubsystem & | bash, | ||
| LifterSubsystem & | lifter, | ||
| SimpleLedSubsystem & | leds, | ||
| IntakeSubsystem & | intake | ||
| ) |
|
override |
|
override |
|
finalvirtual |
Get the command to run when selected from dashboard.
Implements AutonomousCommand.
|
finalvirtual |
Get the name of the command to display on the dashboard.
Implements AutonomousCommand.
|
override |
|
override |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |