All PSoC Application Notes

AN2341: ArcTan as Fast as You Can


Author:

Dave Van Ess

Date published:

Jan 06, 2006 05:11 PM

Software:

PSoC Designer 4.2


Many control applications require calculating an angular position given Cartesian position data. The arctangent function makes this possible. A major setback to this is that the trigonometric functions supplied with the ‘C’ math library use and return float variables. Although very accurate, the processing overhead resulting from using the floating-point math routines can be prohibitive. Techniques are discussed to calculate an arctangent to a specific resolution. Software is presented using these techniques for an arctangent fthsY values.


 Application Note:

an2341_01.pdf | Size: 181 KBytes | Downloads: 705

 Project Files:

an2341.zip | Size: 203.2 KBytes | Downloads: 409