#include <simple_unjam_command.hpp>
◆ UnjamCommand()
◆ end()
| void fang::turret::UnjamCommand::end |
( |
bool |
interrupted | ) |
|
|
overridevirtual |
The action to take when the command ends. Called when either the command finishes normally, or when it interrupted/canceled.
- Parameters
-
| [in] | interrupted | whether the command was interrupted/canceled. |
Implements tap::control::Command.
◆ execute()
| void fang::turret::UnjamCommand::execute |
( |
| ) |
|
|
overridevirtual |
The main body of a command. Called repeatedly while the command is scheduled by a CommandScheduler.
Implements tap::control::Command.
◆ getName()
| const char * fang::turret::UnjamCommand::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ initialize()
| void fang::turret::UnjamCommand::initialize |
( |
| ) |
|
|
overridevirtual |
The initial subroutine of a command. Called once when the command is initially scheduled by a CommandScheduler.
Note that command instances are re-used: a single command could be initialized, run, finished, then later initialized again. Ensure that initialize() resets any state stored in the command!
Implements tap::control::Command.
◆ isFinished()
| bool fang::turret::UnjamCommand::isFinished |
( |
| ) |
const |
|
overridevirtual |
Whether the command has finished. Once a Command finishes, the scheduler will call the end() function and un-schedule it. If a Command is naturally finished (i.e. isFinished() == true), then the CommandScheduler will pass in false to end(). If, for example, another Command is added that in turn stops the Command from executing, then the CommandScheduler will pass in true to end().
- Returns
- whether the command has finished.
Implements tap::control::Command.
The documentation for this class was generated from the following files: