#include <move_unjam_integral_comprised_command.hpp>
A comprised command that combines the integral unjam and rotate commands. Will schedule the move command when not jammed. When jammed, will switch to the unjam command.
- See also
- UnjamIntegralCommand
-
MoveIntegralCommand
◆ MoveUnjamIntegralComprisedCommand()
- Parameters
-
| [in] | drivers | A reference to the Drivers struct. |
| [in] | subsystem | The IntegrableSetpointSubsystem that will be rotated or unjammed. |
| [in] | moveIntegralCommand | A command that rotates the agitator forward. |
| [in] | unjamCommand | A command that unjams the agitator. |
- Note
- The move integral and unjam integral commands must have the same subsystem requirement. This subsystem requirement must be the subsystem passed in.
◆ end()
| void tap::control::setpoint::MoveUnjamIntegralComprisedCommand::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 tap::control::setpoint::MoveUnjamIntegralComprisedCommand::execute |
( |
| ) |
|
|
overridevirtual |
◆ getName()
| const char * tap::control::setpoint::MoveUnjamIntegralComprisedCommand::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ initialize()
| void tap::control::setpoint::MoveUnjamIntegralComprisedCommand::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 tap::control::setpoint::MoveUnjamIntegralComprisedCommand::isFinished |
( |
| ) |
const |
|
overridevirtual |
◆ isReady()
| bool tap::control::setpoint::MoveUnjamIntegralComprisedCommand::isReady |
( |
| ) |
|
|
overridevirtual |
A check called right before a command is scheduled to determine whether or not a command should be scheduled. If return is true then the command is scheduled, if false then the command is not scheduled.
Not forced to be overridden, returns true by default.
Reimplemented from tap::control::Command.
The documentation for this class was generated from the following files: