221 extern PI_Handle
PI_init(
void *pMemory,
const size_t numBytes);
385 *pOutValue =
_IQsat(Up + Ui + ffwdValue,outMax,outMin);
420 *pOutValue =
_IQsat(Up + Ui + ffwdValue,outMax,outMin);
431 #endif //end of _PI_H_ definition
static _iq PI_getOutMin(PI_Handle handle)
Gets the minimum output value allowed in the PI controller.
_iq ffwdValue
the feedforward input value
Contains the public interface to the types definitions.
static void PI_setFfwdValue(PI_Handle handle, const _iq ffwdValue)
Sets the feedforward value in the PI controller.
Defines the PI controller object.
static _iq PI_getRefValue(PI_Handle handle)
Gets the reference value in the PI controller.
static void PI_setUi(PI_Handle handle, const _iq Ui)
Sets the integrator start value in the PI controller.
_iq Ui
the integrator start value for the PI controller
static void PI_setOutMin(PI_Handle handle, const _iq outMin)
Sets the minimum output value allowed in the PI controller.
_iq Ki
the integral gain for the PI controller
static void PI_setKp(PI_Handle handle, const _iq Kp)
Sets the proportional gain in the PI controller.
static void PI_setKi(PI_Handle handle, const _iq Ki)
Sets the integral gain in the PI controller.
static _iq PI_getKi(PI_Handle handle)
Gets the integral gain in the PI controller.
PI_Handle PI_init(void *pMemory, const size_t numBytes)
Initializes the PI controller.
_iq Kp
the proportional gain for the PI controller
struct _PI_Obj_ PI_Obj
Defines the PI controller object.
_iq fbackValue
the feedback input value
static _iq PI_getUi(PI_Handle handle)
Gets the integrator start value in the PI controller.
static void PI_getMinMax(PI_Handle handle, _iq *pOutMin, _iq *pOutMax)
Gets the minimum and maximum output value allowed in the PI controller.
static _iq PI_getFbackValue(PI_Handle handle)
Gets the feedback value in the PI controller.
static void PI_setOutMax(PI_Handle handle, const _iq outMax)
Sets the maximum output value allowed in the PI controller.
static void PI_run_parallel(PI_Handle handle, const _iq refValue, const _iq fbackValue, const _iq ffwdValue, _iq *pOutValue)
Runs the parallel form of the PI controller.
_iq outMax
the maximum output value allowed for the PI controller
_iq refValue
the reference input value
static void PI_setMinMax(PI_Handle handle, const _iq outMin, const _iq outMax)
Sets the minimum and maximum output value allowed in the PI controller.
static void PI_setRefValue(PI_Handle handle, const _iq refValue)
Sets the reference value in the PI controller.
static _iq PI_getFfwdValue(PI_Handle handle)
Gets the feedforward value in the PI controller.
struct _PI_Obj_ * PI_Handle
Defines the PI handle.
static void PI_setFbackValue(PI_Handle handle, const _iq fbackValue)
Sets the feedback value in the PI controller.
#define _IQsat(A, Pos, Neg)
static _iq PI_getKp(PI_Handle handle)
Gets the proportional gain in the PI controller.
static _iq PI_getOutMax(PI_Handle handle)
Gets the maximum output value allowed in the PI controller.
_iq outMin
the minimum output value allowed for the PI controller
static void PI_getGains(PI_Handle handle, _iq *pKp, _iq *pKi)
Gets the gains in the PI controller.
static void PI_setGains(PI_Handle handle, const _iq Kp, const _iq Ki)
Sets the gains in the PI controller.
static void PI_run_series(PI_Handle handle, const _iq refValue, const _iq fbackValue, const _iq ffwdValue, _iq *pOutValue)
Runs the series form of the PI controller.