Class base_waveform

Inheritance Relationships

Derived Types

Class Documentation

class base_waveform

Base class for all types of waveforms (in the control theory sense). All waveforms have [frequency, phase, amplitude, offset] components.

Subclassed by rcppsw::control::constant_waveform, rcppsw::control::null_waveform, rcppsw::control::sawtooth_waveform, rcppsw::control::sine_waveform, rcppsw::control::square_waveform

Public Functions

inline explicit base_waveform(const struct config::waveform_config *const config)
virtual ~base_waveform(void) = default
inline double amplitude(void) const

Get the amplitude of the waveform.

inline double frequency(void) const

Get the frequency of the waveform.

inline double offset(void) const

Get the offset of the waveform.

inline const math::radians &phase(void) const

Get the phase of the waveform in radians.

virtual double value(double time) = 0

Get the current value of the waveform at time t.