223 extern PID_Handle
PID_init(
void *pMemory,
const size_t numBytes);
424 #endif //end of _PID_H_ definition
static _iq PID_getRefValue(PID_Handle handle)
Gets the reference value in the PID controller.
Contains the public interface to the types definitions.
static void PID_setKi(PID_Handle handle, const _iq Ki)
Sets the integral gain in the PID controller.
static void PID_setUi(PID_Handle handle, const _iq Ui)
Sets the integrator start value in the PID controller.
static _iq PID_getKp(PID_Handle handle)
Gets the proportional gain in the PID controller.
static _iq PID_getOutMax(PID_Handle handle)
Gets the maximum output value allowed in the PID controller.
_iq Kd
the derivative gain for the PID controller
_iq Ki
the integral gain for the PID controller
static void PID_getMinMax(PID_Handle handle, _iq *pOutMin, _iq *pOutMax)
Gets the minimum and maximum output value allowed in the PID controller.
struct _PID_Obj_ PID_Obj
Defines the PID controller object.
static void PID_setMinMax(PID_Handle handle, const _iq outMin, const _iq outMax)
Sets the minimum and maximum output value allowed in the PID controller.
static void PID_setRefValue(PID_Handle handle, const _iq refValue)
Sets the reference value in the PID controller.
static _iq PID_getFbackValue(PID_Handle handle)
Gets the feedback value in the PID controller.
static _iq PID_getUi(PID_Handle handle)
Gets the integrator start value in the PID controller.
static void PID_setGains(PID_Handle handle, const _iq Kp, const _iq Ki, const _iq Kd)
Sets the gains in the PID controller.
_iq fbackValue
the feedback input value
static void PID_setOutMin(PID_Handle handle, const _iq outMin)
Sets the minimum output value allowed in the PID controller.
static void PID_getGains(PID_Handle handle, _iq *pKp, _iq *pKi, _iq *pKd)
Gets the gains in the PID controller.
_iq outMin
the minimum output value allowed for the PID controller
struct _PID_Obj_ * PID_Handle
Defines the PID handle.
static _iq PID_getOutMin(PID_Handle handle)
Gets the minimum output value allowed in the PID controller.
PID_Handle PID_init(void *pMemory, const size_t numBytes)
Initializes the PID controller.
_iq refValue
the reference input value
_iq outMax
the maximum output value allowed for the PID controller
_iq Ui
the integrator start value for the PID controller
static void PID_run_spd(PID_Handle handle, const _iq refValue, const _iq fbackValue, _iq *pOutValue)
Runs the PID controller for speed.
static void PID_setOutMax(PID_Handle handle, const _iq outMax)
Sets the maximum output value allowed in the PID controller.
_iq Kp
the proportional gain for the PID controller
#define _IQsat(A, Pos, Neg)
static _iq PID_getKd(PID_Handle handle)
Gets the derivative gain in the PID controller.
static void PID_setKd(PID_Handle handle, const _iq Kd)
Sets the derivative gain in the PID controller.
Defines the PID controller object.
static void PID_setFbackValue(PID_Handle handle, const _iq fbackValue)
Sets the feedback value in the PID controller.
static void PID_setKp(PID_Handle handle, const _iq Kp)
Sets the proportional gain in the PID controller.
static _iq PID_getKi(PID_Handle handle)
Gets the integral gain in the PID controller.
static void PID_run(PID_Handle handle, const _iq refValue, const _iq fbackValue, _iq *pOutValue)
Runs the PID controller.