2025-Robot
Robot code for 2025 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
l4_coral_placement_command.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
10#include <chrono>
11
14
22class L4CoralPlacementCommand : public frc2::CommandHelper<frc2::Command, L4CoralPlacementCommand> {
23 public:
24 L4CoralPlacementCommand(ElevatorSubsystem* elevatorSubsystem, IntakeSubsystem* intakeSubsystem);
25
26 void Initialize() override;
27
28 void Execute() override;
29
30 void End(bool interrupted) override;
31
32 bool IsFinished() override;
33
34 private:
37 std::chrono::time_point<std::chrono::steady_clock> m_startTime;
39};
Definition elevator_subsystem.h:14
Definition intake_subsystem.h:14
Definition l4_coral_placement_command.h:22
void End(bool interrupted) override
Definition l4_coral_placement_command.cpp:42
std::chrono::time_point< std::chrono::steady_clock > m_startTime
Definition l4_coral_placement_command.h:37
void Initialize() override
Definition l4_coral_placement_command.cpp:13
ElevatorSubsystem * m_pElevatorSubsystem
Definition l4_coral_placement_command.h:35
void Execute() override
Definition l4_coral_placement_command.cpp:26
IntakeSubsystem * m_pIntakeSubsystem
Definition l4_coral_placement_command.h:36
bool m_placed
Definition l4_coral_placement_command.h:38
bool IsFinished() override
Definition l4_coral_placement_command.cpp:52
L4CoralPlacementCommand(ElevatorSubsystem *elevatorSubsystem, IntakeSubsystem *intakeSubsystem)
Definition l4_coral_placement_command.cpp:7