![]() |
fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
|
Fastcat device class that can be used to trigger a fault based on a signal. More...
#include "faulter.h"


Public Member Functions | |
| Faulter () | |
| Faulter constructor. | |
| bool | ConfigFromYaml (const YAML::Node &node) override |
| Parses input yaml file to set sensor parameters. | |
| bool | Read () override |
| Updates device state. | |
| FaultType | Process () override |
| Checks if fault-trigger signal is present. | |
| bool | Write (DeviceCmd &cmd) override |
| Commands device. Only FaulterEnableCmd is accepted currently. | |
| void | Fault () override |
| Disables device. | |
| void | Reset () override |
| Enables device if device starts enabled. | |
Public Member Functions inherited from fastcat::DeviceBase | |
| virtual | ~DeviceBase () |
| virtual void | SetInitializationTime (double time_sec, double monotonic_time_sec) |
| void | RegisterCmdQueue (std::shared_ptr< ThreadSafeQueue< DeviceCmd > > cmd_queue) |
| std::string | GetName () |
| std::shared_ptr< DeviceState > | GetState () |
| void | SetTime (double time, double monotonic_time) |
| void | SetLoopPeriod (double loop_period) |
Protected Attributes | |
| bool | start_enabled_ {true} |
| YAML configurable, recommended value is true. | |
Protected Attributes inherited from fastcat::DeviceBase | |
| std::string | name_ |
| unique device name | |
| double | last_monotonic_time_ = 0.0 |
| double | loop_period_ = 0.0 |
| only some devices need | |
| double | initialization_time_sec_ = -1 |
| only some devices need | |
| double | monotonic_initialization_time_sec_ = -1 |
| only some devices need | |
| bool | device_fault_active_ = false |
| device-level fault, manager also has fault status flag | |
| std::shared_ptr< DeviceState > | state_ |
| Fastcat state data. | |
| std::shared_ptr< ThreadSafeQueue< DeviceCmd > > | cmd_queue_ |
| for intra-device commands | |
Additional Inherited Members | |
Public Attributes inherited from fastcat::DeviceBase | |
| std::vector< Signal > | signals_ |
Fastcat device class that can be used to trigger a fault based on a signal.
| fastcat::Faulter::Faulter | ( | ) |
Faulter constructor.
|
overridevirtual |
Parses input yaml file to set sensor parameters.
| node | The portion of the yaml file corresponding to this Faulter device. |
Implements fastcat::DeviceBase.

|
overridevirtual |
|
overridevirtual |
Checks if fault-trigger signal is present.
Reimplemented from fastcat::DeviceBase.
|
overridevirtual |
Updates device state.
Implements fastcat::DeviceBase.

|
overridevirtual |
Enables device if device starts enabled.
Reimplemented from fastcat::DeviceBase.

|
overridevirtual |
Commands device. Only FaulterEnableCmd is accepted currently.
| cmd | Command provided to Faulter device, of a type that is a subclass of DeviceCmd. |
Reimplemented from fastcat::DeviceBase.
|
protected |
YAML configurable, recommended value is true.