![]() |
fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
|
#include "signal_generator.h"


Public Member Functions | |
| SignalGenerator () | |
| bool | ConfigFromYaml (const YAML::Node &node) override |
| bool | Read () override |
Public Member Functions inherited from fastcat::DeviceBase | |
| virtual | ~DeviceBase () |
| virtual FaultType | Process () |
| virtual bool | Write (DeviceCmd &cmd) |
| virtual void | Fault () |
| virtual void | Reset () |
| 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 | ||
| std::string | signal_generator_type_string_ | |
| enum SignalGeneratorType | signal_generator_type_ | |
| double | start_time_ = 0 | |
| std::default_random_engine | generator_ | |
| union { | ||
| SineWaveParams sine_wave_ | ||
| SawToothParams saw_tooth_ | ||
| GaussianRandomParams gaussian_random_ | ||
| UniformRandomParams uniform_random_ | ||
| }; | ||
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::SignalGenerator::SignalGenerator | ( | ) |
|
overridevirtual |
|
overridevirtual |
Implements fastcat::DeviceBase.
| union { ... } fastcat::SignalGenerator |
| GaussianRandomParams fastcat::SignalGenerator::gaussian_random_ |
|
protected |
| SawToothParams fastcat::SignalGenerator::saw_tooth_ |
|
protected |
|
protected |
| SineWaveParams fastcat::SignalGenerator::sine_wave_ |
|
protected |
| UniformRandomParams fastcat::SignalGenerator::uniform_random_ |