Thread-safe safety gate that owns interlock state transitions.
More...
#include <RobotInterlock.hpp>
Definition at line 65 of file RobotInterlock.hpp.
◆ RobotInterlock()
- Parameters
-
| hardware | Hardware adapter used for freeze/enable side effects. |
Definition at line 11 of file RobotInterlock.cpp.
◆ freezeReason()
◆ guardianHeartbeat()
| void RobotInterlock::guardianHeartbeat |
( |
std::uint32_t |
tick | ) |
|
|
noexcept |
◆ motionAllowed()
| bool RobotInterlock::motionAllowed |
( |
| ) |
const |
|
noexcept |
◆ onControlEvent()
- Parameters
-
| event | Control event (FREEZE_NOW or ALLOW_MOTION). |
| reason | Associated freeze reason when applicable. |
Definition at line 18 of file RobotInterlock.cpp.
References FREEZE_NOW.
◆ operatorAcknowledge()
| void RobotInterlock::operatorAcknowledge |
( |
| ) |
|
|
noexcept |
◆ state()
◆ watchdogCheck()
| void RobotInterlock::watchdogCheck |
( |
std::uint32_t |
now, |
|
|
std::uint32_t |
max_allowed_delay |
|
) |
| |
|
noexcept |
- Parameters
-
| now | Current monotonic tick. |
| max_allowed_delay | Maximum allowed stale-heartbeat delay in ticks. |
Definition at line 32 of file RobotInterlock.cpp.
References WATCHDOG_TIMEOUT.
The documentation for this class was generated from the following files: