2025-Robot
Robot code for 2025 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_L1_IJ.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
18
20 : public frc2::CommandHelper<frc2::Command, AutonomousL1IJ>
21 , public AutonomousCommand {
22 public:
24 IntakeSubsystem& intake,
26 VisionSubsystem& vision);
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::SequentialCommandGroup m_allCommands;
53};
A command that can be selected from the dashboard.
Definition autonomous_command.h:14
Definition autonomous_L1_IJ.h:21
void Execute() override
Definition autonomous_L1_IJ.cpp:40
SwerveDriveSubsystem & m_Swerve
Definition autonomous_L1_IJ.h:48
void End(bool interrupted) override
Definition autonomous_L1_IJ.cpp:45
AutonomousL1IJ(ElevatorSubsystem &elevator, IntakeSubsystem &intake, SwerveDriveSubsystem &swerve, VisionSubsystem &vision)
Definition autonomous_L1_IJ.cpp:18
IntakeSubsystem & m_Intake
Definition autonomous_L1_IJ.h:47
std::function< void(ArmPosition)> m_armPositionEventCallback
Definition autonomous_L1_IJ.h:50
ElevatorSubsystem & m_Elevator
Definition autonomous_L1_IJ.h:46
VisionSubsystem & m_Vision
Definition autonomous_L1_IJ.h:49
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition autonomous_L1_IJ.cpp:58
void Initialize() override
Definition autonomous_L1_IJ.cpp:35
frc2::SequentialCommandGroup m_allCommands
Definition autonomous_L1_IJ.h:52
bool IsFinished() override
Definition autonomous_L1_IJ.cpp:50
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition autonomous_L1_IJ.cpp:54
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