LRT14
1.0
|
Performs the autonomous routine. More...
#include <Autonomous.h>
Public Member Functions | |
bool | Start () |
Starts the task. | |
void | AllocateResources () |
Calls AllocateResource() on resources used in by this task. | |
![]() | |
Sequential (const char *name, bool queueIfBlocked=false, bool restartable=false) | |
Creates a sequential routine. | |
Sequential (const char *name, std::vector< Automation * > sequence, bool queueIfBlocked=false, bool restartable=false) | |
Creates a sequential routine initialized with a sequence of routines. | |
virtual bool | Abort () |
Aborts the task. | |
virtual bool | Run () |
Runs one cycle of the task. | |
void | AddAutomation (Automation *automation) |
Adds an automation routine to the sequence of routines. | |
void | AddAutomation (std::vector< Automation * > automation) |
Adds a list of automation routine to the sequence of routines. | |
void | ClearSequence () |
Clears the sequence of routines. | |
![]() | |
Automation (const char *name, bool requiresAbortCycles=false, bool queueIfBlocked=false, bool restartable=false) | |
Creates an automation routine. | |
bool | Update () |
Updates the task for one cycle, including calling Run(). | |
bool | StartAutomation (Event *trigger=NULL) |
Tries to start this task. | |
bool | AbortAutomation (Event *trigger=NULL) |
Tries to aborts this task. | |
void | ContinueAutomation (Event *trigger) |
Sets the task to continue. | |
bool | CheckResources () |
Allocates resources used by this task. Checks if this task is blocked. | |
void | DeallocateResources () |
Clears all resources allocated by this task. | |
bool | IsRestartable () |
Gets whether a task can be restarted (started again when already running). | |
bool | QueueIfBlocked () |
Gets whether a task should continue to be started if blocked. | |
bool | RequiresAbortCycles () |
Gets whether a task requires running cycles before aborting. | |
const char * | GetName () |
Gets the name of the automation routine. | |
Additional Inherited Members | |
![]() | |
static bool | GetAllocation (ControlResource::Enum resource) |
Gets the task that allocated a resource. | |
![]() | |
virtual bool | ContinueNextStep () |
Checks whether the next step in the sequence can be started. | |
Performs the autonomous routine.
|
virtual |
Starts the task.
Reimplemented from Sequential.