![]() |
Documentation
Tools for embedded systems
|
Represents a time delay value for use in transportDelay constructor. More...
#include <ltisys.hpp>
Public Member Functions | |
| constexpr | timeDelay (real_t v) |
| Construct a new timeDelay object. | |
| constexpr size_t | operator() (const real_t dt) const |
| Computes the number of discrete steps equivalent to the delay. | |
| constexpr size_t | operator[] (const real_t dt) const |
| Alternate syntax to compute delay in steps using indexing operator. | |
Public Attributes | |
| real_t | value |
| Delay duration in seconds. | |
Represents a time delay value for use in transportDelay constructor.
This utility provides a convenient way to convert a continuous-time delay (in seconds) into a discrete-time delay step count based on a given time step `dt`.
Example usage:
|
inlineexplicitconstexpr |
Construct a new timeDelay object.
| v | The delay value in seconds. |
|
inlineconstexpr |
Computes the number of discrete steps equivalent to the delay.
| dt | The time step used in the simulation. |
|
inlineconstexpr |
Alternate syntax to compute delay in steps using indexing operator.
| dt | The time step used in the simulation. |
| real_t qlibs::timeDelay::value |
Delay duration in seconds.