![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Alarm class. More...
#include <laeAlarms.h>
Public Member Functions | |
| LaeAlarms () | |
| Default contructor. | |
| virtual | ~LaeAlarms () |
| Destructor. | |
| virtual void | update () |
| Update alarm and warning state. More... | |
Static Public Member Functions | |
| static bool | isCritical () |
| Test if critcal alarms exist. More... | |
| static bool | isBatteryCritical () |
| Test if battery critcal alarms exist. More... | |
| static bool | isSafeToOperate () |
| Test if robot is safe to operate given the current alarm state. More... | |
| static void | clearAlarms (LaeAlarmInfo &info) |
| Clear alarm information state. More... | |
| static void | copyAlarms (const LaeAlarmInfo &src, LaeAlarmInfo &dst) |
| Copy alarm state. More... | |
Protected Member Functions | |
| virtual void | updateSysAlarms (const LaeAlarmInfo &subsys, LaeAlarmInfo &sys) |
| Update system alarm state from subsystem alarm state. More... | |
Alarm class.
Definition at line 167 of file laeAlarms.h.
|
static |
Clear alarm information state.
| [in,out] | info | Alarm state. |
Definition at line 355 of file laeAlarms.cxx.
References laelaps::LaeAlarmInfo::m_bIsCritical, laelaps::LaeAlarmInfo::m_uAlarms, and laelaps::LaeAlarmInfo::m_uWarnings.
|
static |
Copy alarm state.
| [in] | src | Source alarm state. |
| [out] | dst | Destination alarm state. |
Definition at line 362 of file laeAlarms.cxx.
References laelaps::LaeAlarmInfo::m_bIsCritical, laelaps::LaeAlarmInfo::m_uAlarms, and laelaps::LaeAlarmInfo::m_uWarnings.
|
static |
Test if battery critcal alarms exist.
The determination is made solely on the real-time database current state. No subsystems are queried.
Definition at line 80 of file laeAlarms.cxx.
|
static |
Test if critcal alarms exist.
The determination is made solely on the real-time database current state. No subsystems are queried.
Definition at line 75 of file laeAlarms.cxx.
|
static |
Test if robot is safe to operate given the current alarm state.
The determination is made solely on the real-time database current state. No subsystems are queried.
Definition at line 85 of file laeAlarms.cxx.
Referenced by laelaps::LaeRobot::canMove().
|
virtual |
Update alarm and warning state.
Status, alarms, and erros from all monitored subsystems are processed to provide a unified alarm framework. The alarm state is written to the Laelaps real-time database.
Definition at line 105 of file laeAlarms.cxx.
References laelaps::LaeAlarmInfo::m_bIsCritical, laelaps::LaeAlarmInfo::m_uAlarms, laelaps::LaeAlarmInfo::m_uWarnings, motor::roboclaw::ParamStatusErrLogicBattHigh, motor::roboclaw::ParamStatusErrLogicBattLow, motor::roboclaw::ParamStatusErrMainBattHigh, motor::roboclaw::ParamStatusErrMot1Fault, motor::roboclaw::ParamStatusErrMot2Fault, motor::roboclaw::ParamStatusErrTemp, motor::roboclaw::ParamStatusWarnMainBattHigh, motor::roboclaw::ParamStatusWarnMainBattLow, motor::roboclaw::ParamStatusWarnMot1OverCur, motor::roboclaw::ParamStatusWarnMot2OverCur, and motor::roboclaw::ParamStatusWarnTemp.
Referenced by laelaps::LaeThreadWd::exec().
|
protectedvirtual |
Update system alarm state from subsystem alarm state.
| [in] | subsys | Subsystem alarm state. |
| [out] | sys | System alarm state. |
Definition at line 294 of file laeAlarms.cxx.
References laelaps::LaeAlarmInfo::m_bIsCritical, laelaps::LaeAlarmInfo::m_uAlarms, and laelaps::LaeAlarmInfo::m_uWarnings.