30 #define QLTISYS_DISCRETE ( -1.0F )
51 typedef struct _qLTISys_s
54 float (*sysUpdate)(
struct _qLTISys_s *sys,
float u );
59 float dt, b0, min, max;
61 qNumA_IntegrationMethod_t integrate;
90 const float initVal );
176 const float *
const c,
194 qNumA_IntegrationMethod_t im );
float qLTISys_Excite(qLTISys_t *const sys, float u)
Drives the LTI system recursively using the input signal provided.
Definition qltisys.c:61
float qLTISys_DiscreteFIRUpdate(float *w, const float *const c, const size_t wsize, const float x)
Evaluate the discrete FIR filter by updating the delay lines of x inside the window w of size wsize w...
Definition qltisys.c:212
int qLTISys_SetDelay(qLTISys_t *const sys, float *const w, const size_t n, const float initVal)
Set the input delay for LTI system.
Definition qltisys.c:88
int qLTISys_SetIntegrationMethod(qLTISys_t *const sys, qNumA_IntegrationMethod_t im)
Set integration method for continuos systems.
Definition qltisys.c:239
int qLTISys_Setup(qLTISys_t *const sys, float *num, float *den, void *x, const size_t nb, const size_t na, const float dt)
Setup and initialize an instance of a LTI system.
Definition qltisys.c:155
qNumA_state_t qLTISys_ContinuosX_t
Type to specify continuos states.
Definition qltisys.h:37
float qLTISys_DiscreteX_t
Type to specify continuos states.
Definition qltisys.h:42
int qLTISys_SetSaturation(qLTISys_t *const sys, const float min, const float max)
Setup the output saturation for the LTI system.
Definition qltisys.c:103
int qLTISys_SetInitStates(qLTISys_t *const sys, const float *const xi)
Set the initial states for the given system.
Definition qltisys.c:130
int qLTISys_IsInitialized(const qLTISys_t *const sys)
Check if the LTI system is initialized.
Definition qltisys.c:118
A LTI system object.
Definition qltisys.h:52
A Tapped Delay Line (TDL) object.
Definition qtdl.h:35