2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_balance.h
Go to the documentation of this file.
1
4
5#pragma once
6
8#include <frc2/command/CommandBase.h>
9#include <frc2/command/CommandHelper.h>
15
16#include <string>
17
19 : public frc2::CommandHelper<frc2::CommandBase, AutonomousBalance>
20 , public AutonomousCommand {
21 public:
24 LifterSubsystem& lifter,
26 IntakeSubsystem& intake);
27
28 void Initialize() override;
29
30 void Execute() override;
31
32 void End(bool interrupted) override;
33
34 bool IsFinished() override;
35
39 std::string GetName() const final;
43 frc2::Command* GetCommand() final;
44
45 private:
51
52 frc2::CommandPtr m_allCommands;
53};
Definition autonomous_balance.h:20
LifterSubsystem & m_lifter
Definition autonomous_balance.h:48
void Initialize() override
Definition autonomous_balance.cpp:55
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_balance.cpp:77
bool IsFinished() override
Definition autonomous_balance.cpp:73
frc2::CommandPtr m_allCommands
Definition autonomous_balance.h:52
void End(bool interrupted) override
Definition autonomous_balance.cpp:66
SwerveDriveSubsystem & m_drive
Definition autonomous_balance.h:46
SimpleLedSubsystem & m_leds
Definition autonomous_balance.h:49
void Execute() override
Definition autonomous_balance.cpp:61
IntakeSubsystem & m_intake
Definition autonomous_balance.h:50
BashGuardSubsystem & m_bashGuard
Definition autonomous_balance.h:47
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_balance.cpp:81
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition bash_guard_subsystem.h:14
Definition intake_subsystem.h:17
Definition lifter_subsystem.h:26
Definition simple_led_subsystem.h:25
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56
Definition Constants.h:69