2025-Robot
Robot code for 2025 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_L4_JKL.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/Command.h>
8#include <frc2/command/CommandHelper.h>
9#include <frc2/command/SequentialCommandGroup.h>
10
11#include <string>
12
21
23 : public frc2::CommandHelper<frc2::Command, AutonomousL4JKL>
24 , public AutonomousCommand {
25 public:
27 IntakeSubsystem& intake,
29 VisionSubsystem& vision);
30
31 void Initialize() override;
32
33 void Execute() override;
34
35 void End(bool interrupted) override;
36
37 bool IsFinished() override;
38
42 std::string GetName() const final;
46 frc2::Command* GetCommand() final;
47
48 private:
54
55 frc2::SequentialCommandGroup m_allCommands;
56};
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition autonomous_L4_JKL.h:24
ElevatorSubsystem & m_Elevator
Definition autonomous_L4_JKL.h:49
frc2::SequentialCommandGroup m_allCommands
Definition autonomous_L4_JKL.h:55
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_L4_JKL.cpp:81
void End(bool interrupted) override
Definition autonomous_L4_JKL.cpp:72
bool IsFinished() override
Definition autonomous_L4_JKL.cpp:77
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_L4_JKL.cpp:85
AutonomousL4JKL(ElevatorSubsystem &elevator, IntakeSubsystem &intake, SwerveDriveSubsystem &swerve, VisionSubsystem &vision)
Definition autonomous_L4_JKL.cpp:20
VisionSubsystem & m_Vision
Definition autonomous_L4_JKL.h:52
void Initialize() override
Definition autonomous_L4_JKL.cpp:62
SwerveDriveSubsystem & m_Swerve
Definition autonomous_L4_JKL.h:51
std::function< void(ArmPosition)> m_armPositionEventCallback
Definition autonomous_L4_JKL.h:53
void Execute() override
Definition autonomous_L4_JKL.cpp:67
IntakeSubsystem & m_Intake
Definition autonomous_L4_JKL.h:50
Definition elevator_subsystem.h:14
Definition intake_subsystem.h:14
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:75
Definition vision_subsystem.h:136
ArmPosition
Definition position.h:72