int64_t timepoint_ns
Integer timestamp type.
Definition: u_time.h:70
Definition: m_lowpass_float.cpp:20
bool m_lowpass_float_is_initialized(const struct m_lowpass_float *mlf)
Get whether we have initialized state.
Definition: m_lowpass_float.cpp:77
timepoint_ns m_lowpass_float_get_timestamp_ns(const struct m_lowpass_float *mlf)
Get the time of last update.
Definition: m_lowpass_float.cpp:68
float m_lowpass_float_get_state(const struct m_lowpass_float *mlf)
Get the filtered value.
Definition: m_lowpass_float.cpp:58
void m_lowpass_float_destroy(struct m_lowpass_float **ptr_to_mlf)
Destroy a lowpass integer filter.
Definition: m_lowpass_float.cpp:87
struct m_lowpass_float * m_lowpass_float_create(float cutoff_hz)
Constructor.
Definition: m_lowpass_float.cpp:39
void m_lowpass_float_add_sample(struct m_lowpass_float *mlf, float sample, timepoint_ns timestamp_ns)
Filter a sample.
Definition: m_lowpass_float.cpp:49
Time-keeping: a clock that is steady, convertible to system time, and ideally high-resolution.