Class sawtooth_waveform

Inheritance Relationships

Base Type

Class Documentation

class sawtooth_waveform : public rcppsw::control::base_waveform

Given the current time, outputs the current value of a sawtooth wave according to configured parameters:

value = amplitude * ( 2 * (t - floor(time + 0.5) + phase)) + offset.

Public Functions

inline explicit sawtooth_waveform(const struct config::waveform_config *const config)
inline virtual double value(double time) override

Get the current value of the waveform at time t.