2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
autonomous_nothing.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/CommandBase.h>
8#include <frc2/command/CommandHelper.h>
9
10#include <string>
11
12#include "autonomous_command.h"
13
22 : public frc2::CommandHelper<frc2::CommandBase, AutonomousNothing>
23 , public AutonomousCommand {
24 public:
26
27 void Initialize() override;
28
29 void Execute() override;
30
31 void End(bool interrupted) override;
32
33 bool IsFinished() override;
34
38 std::string GetName() const final;
42 frc2::Command* GetCommand() final;
43};
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14
Definition: autonomous_nothing.h:23
frc2::Command * GetCommand() final
Get the command to run when selected from dashboard.
Definition: autonomous_nothing.cpp:29
void End(bool interrupted) override
Definition: autonomous_nothing.cpp:18
void Initialize() override
Definition: autonomous_nothing.cpp:12
bool IsFinished() override
Definition: autonomous_nothing.cpp:21
void Execute() override
Definition: autonomous_nothing.cpp:15
AutonomousNothing()
Definition: autonomous_nothing.cpp:7
std::string GetName() const final
Get the name of the command to display on the dashboard.
Definition: autonomous_nothing.cpp:25