Robot Control Library
|
Struct containing configuration and state of a SISO filter. More...
#include <rc/math/filter.h>
Data Fields | |
transfer function properties | |
int | order |
transfer function order More... | |
double | dt |
timestep in seconds More... | |
double | gain |
Additional gain multiplier, usually 1.0. More... | |
rc_vector_t | num |
numerator coefficients More... | |
rc_vector_t | den |
denominator coefficients More... | |
saturation settings | |
int | sat_en |
set to 1 by enable_saturation() More... | |
double | sat_min |
lower saturation limit More... | |
double | sat_max |
upper saturation limit More... | |
int | sat_flag |
1 if saturated on the last step More... | |
soft start settings | |
int | ss_en |
set to 1 by enbale_soft_start() More... | |
double | ss_steps |
steps before full output allowed More... | |
dynamically allocated ring buffers | |
rc_ringbuf_t | in_buf |
rc_ringbuf_t | out_buf |
other | |
double | newest_input |
shortcut for the most recent input More... | |
double | newest_output |
shortcut for the most recent output More... | |
uint64_t | step |
steps since last reset More... | |
int | initialized |
initialization flag More... | |
Struct containing configuration and state of a SISO filter.
Also points to dynamically allocated memory which make it necessary to use the allocation and free function in this API for proper use. The user can read and modify values directly from ths struct.
int order |
transfer function order
double dt |
timestep in seconds
double gain |
Additional gain multiplier, usually 1.0.
rc_vector_t num |
numerator coefficients
rc_vector_t den |
denominator coefficients
int sat_en |
set to 1 by enable_saturation()
double sat_min |
lower saturation limit
double sat_max |
upper saturation limit
int sat_flag |
1 if saturated on the last step
int ss_en |
set to 1 by enbale_soft_start()
double ss_steps |
steps before full output allowed
rc_ringbuf_t in_buf |
rc_ringbuf_t out_buf |
double newest_input |
shortcut for the most recent input
double newest_output |
shortcut for the most recent output
uint64_t step |
steps since last reset
int initialized |
initialization flag