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_Asin_FLT<br />

Table 4-36. Approximation polynomial coefficients<br />

a 0 a 1 a 2<br />

1.000001892183630 0.166350537976503 0.082733681152843<br />

In Table 4-37 there are the approximation coefficients used <strong>for</strong> GFLIB_Asin_FLT<br />

calculation in interval [0.4, 1).<br />

Table 4-37. Approximation polynomial coefficients<br />

a 0 a 1 a 2 a 3 a 4<br />

-0.018725300 0.074261000 -0.212114380 1.570732421 1.570796326<br />

Figure 4-18. asin(x) vs. GFLIB_Asin(f32In)<br />

Note<br />

The input value is assumed to be in the interval [-1, 1] . The<br />

function call is slightly different from common approach in the<br />

library set. The function can be called in four different ways:<br />

• With implementation postfix (i.e. GFLIB_Asin_FLT(fltIn,<br />

&pParam)), where the &pParam is pointer to<br />

approximation coefficients. In case the default<br />

approximation coefficients are used, the &pParam must be<br />

replaced with GFLIB_ASIN_DEFAULT_FLT symbol. The<br />

&pParam parameter is m<strong>and</strong>atory.<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 />

232 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!