7#include <frc2/command/CommandBase.h>
8#include <frc2/command/CommandHelper.h>
15class ShootCommand :
public frc2::CommandHelper<frc2::CommandBase, ShootCommand> {
24 void End(
bool interrupted)
override;
34 std::chrono::time_point<std::chrono::steady_clock>
m_startTime;
Controls the Intake of the robot and provides internal ball position state info.
Definition: intake_subsystem.h:24
Definition: shoot_command.h:15
std::chrono::time_point< std::chrono::steady_clock > m_startTime
When the command began.
Definition: shoot_command.h:34
bool IsFinished() override
Definition: shoot_command.cpp:38
void Initialize() override
Definition: shoot_command.cpp:15
IntakeSubsystem * m_pIntake
Definition: shoot_command.h:29
void End(bool interrupted) override
Definition: shoot_command.cpp:33
uint m_totalCargo
Total cargo we expect to shoot. 0 indicates shoot until timeout.
Definition: shoot_command.h:31
uint m_cargoShot
Cargo shot so far.
Definition: shoot_command.h:32
units::millisecond_t m_timeout
0 indicates no timeout
Definition: shoot_command.h:35
void Execute() override
Definition: shoot_command.cpp:23
bool m_previousBallPresent
Definition: shoot_command.h:30