mcx::state_machine
mcx::state_machine
Classes
Types
Functions
Attributes
Types Documentation
enum EventPriority
| Enumerator |
Value |
Description |
| HIGH_PRIORITY_EVENT |
0 |
|
| LOW_PRIORITY_EVENT |
1 |
|
enum EventStatus
| Enumerator |
Value |
Description |
| EVENT_NONE |
-1 |
|
| EVENT_DONE |
0 |
|
| EVENT_DELAY |
1 |
|
| EVENT_REPEAT |
2 |
|
| EVENT_TERMINATE |
3 |
|
| EVENT_REPEAT_NO_TERMINATE |
4 |
|
using Error
using mcx::state_machine::Error = typedef signal_monitor::SignalId;
using ErrorGroup
using mcx::state_machine::ErrorGroup = typedef signal_monitor::SignalIdGroup;
using TriggerType
using mcx::state_machine::TriggerType = typedef signal_monitor::TriggerType;
using MotorcortexError
using mcx::state_machine::MotorcortexError = typedef motorcortex_Error;
using MotorcortexErrorList
using mcx::state_machine::MotorcortexErrorList = typedef motorcortex_ErrorList;
using MotorcortexErrorLevel
using mcx::state_machine::MotorcortexErrorLevel = typedef motorcortex_ErrorLevel;
Functions Documentation
function encodeErrorMsg
size_t encodeErrorMsg(
const MotorcortexErrorList & error_list,
uint8_t * error_list_msg,
size_t size
)
function createError
MotorcortexError createError(
const Error & error,
motorcortex_ErrorLevel error_level,
uint64_t timestamp
)
function printError
void printError(
const std::string & name,
const MotorcortexError & error
)
Attributes Documentation
variable MAX_NUM_OF_ERRORS
constexpr auto MAX_NUM_OF_ERRORS = sizeof(MotorcortexErrorList::errors) / sizeof(MotorcortexErrorList::errors[0]);
variable EVENT_DEFAULT_TIMEOUT_SEC
constexpr auto EVENT_DEFAULT_TIMEOUT_SEC = std::numeric_limits<double>::max();
variable MAX_NUMBER_OF_STATES
constexpr auto MAX_NUMBER_OF_STATES = 100;
variable DEFAULT_TERMINATE_EVENT
constexpr auto DEFAULT_TERMINATE_EVENT = nullptr;
Updated on 2022-04-05 at 16:21:27 +0200