DUNE: Uniform Navigational Environment
2.4.2
|
Plan Specification parser.
Public Types | |
enum | CalibrationState { CS_NONE, CS_NOT_STARTED, CS_IN_PROGRESS, CS_DONE, CS_FAILED } |
Public Member Functions | |
Calibration (uint16_t min_time) | |
void | setTime (float time) |
void | start (void) |
void | stop (void) |
void | setFailed (const std::string &info) |
void | forceRemainingTime (float time) |
float | getTime (void) const |
float | getRemaining (void) const |
bool | pastMinimum (void) const |
bool | inProgress (void) const |
bool | notStarted (void) const |
bool | isDone (void) const |
bool | hasFailed (void) const |
const std::string & | getInfo (void) const |
Calibration state.
Enumerator | |
---|---|
CS_NONE |
Not available as in, no need for calibration. |
CS_NOT_STARTED |
Must be done but has not started yet. |
CS_IN_PROGRESS |
In progress. |
CS_DONE |
Calibration done. |
CS_FAILED |
Calibration failed. |
|
inline |
Default constructor.
|
inline |
Set new remaining time for calibration Calibration time cannot increase.
[in] | time | new calibration time |
Referenced by Plan::Engine::Task::consume().
|
inline |
|
inline |
Get remaining time in calibration.
|
inline |
Get the calibration time.
Referenced by Plan::Engine::Plan::calibrationStarted(), and Plan::Engine::Task::vehicleRequest().
|
inline |
Calibration has failed.
References CS_FAILED.
Referenced by Plan::Engine::Task::consume().
|
inline |
Check if calibration is in progress.
References CS_IN_PROGRESS.
Referenced by Plan::Engine::Task::consume().
|
inline |
|
inline |
Check if calibration has not yet started.
References CS_NOT_STARTED.
|
inline |
Check if calibration time is past minimum time.
Referenced by Plan::Engine::Task::consume().
|
inline |
|
inline |
Set the calibration time.
[in] | time | time to set in calibration |
References CS_NONE, and CS_NOT_STARTED.
Referenced by Plan::Engine::Task::startPlan().
|
inline |
Start calibration.
References CS_IN_PROGRESS, and CS_NONE.
Referenced by Plan::Engine::Task::consume().
|
inline |