03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Function GFLIB_<strong>Control</strong>lerPIpAW_F32<br />

The sum of the scaled proportional <strong>and</strong> integral terms gives a complete equation of the<br />

controller. The problem is however, that either of the gain parameters K P_sc, K I_sc can<br />

be out of the [-1, 1) range, hence can not be directly interpreted as fractional values. To<br />

overcome this, it is necessary to scale these gain parameters using the shift values as<br />

follows:<br />

where<br />

Equation GFLIB_<strong>Control</strong>lerPIpAW_Eq9<br />

Equation GFLIB_<strong>Control</strong>lerPIpAW_Eq10<br />

• f16PropGain - is the scaled value of proportional gain [-1, 1)<br />

• s16PropGainShift - is the scaling shift <strong>for</strong> proportional gain [-31, 31)<br />

• f16IntegGain - is the scaled value of integral gain [-1, 1)<br />

• s16IntegGainShift - is the scaling shift <strong>for</strong> integral gain [-31, 31)<br />

The sum of the scaled proportional <strong>and</strong> integral terms gives a complete equation of the<br />

controller:<br />

Equation GFLIB_<strong>Control</strong>lerPIpAW_Eq11<br />

The output signal limitation is implemented in this controller. The actual output u(k) is<br />

bounded not to exceed the given limit values f32UpperLimit, f32LowerLimit. This is due<br />

to either the bounded power of the actuator or to the physical constraints of the plant.<br />

Equation GFLIB_<strong>Control</strong>lerPIpAW_Eq12<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

282 Freescale Semiconductor, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!