Four-quadrant arc tangent
Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ Optimization/ C28x IQmath
Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto™ Processors Processors/ Optimization/ C28x IQmath
The implementation of this block does not call the corresponding Texas Instruments library function during code generation. The Texas Instruments function uses a global Q setting and the MathWorks® code used by this block dynamically adjusts the Q format based on the block input. See Using the IQmath Library for more information.
Type of arc tangent to calculate:
atan2 — Compute the four-quadrant arc
tangent with output in radians with values from -pi to +pi.
atan2PU — Compute the four-quadrant arc
tangent per unit. If
atan2(B,A) is greater than or equal to 0,
atan2PU(B,A) = atan2(B,A)/2*pi. Otherwise,
atan2PU(B,A) = atan2(B,A)/2*pi+1. The output is in per-unit
radians with values from 0 to 2*pi radians.
The order of the inputs to the Arctangent IQN block correspond to the Texas Instruments convention, with argument 'A' at the top and 'B' at bottom.
For detailed information on the IQmath library, see the user's guide for the C28x IQmath Library - A Virtual Floating Point Engine, Literature Number SPRC087, available at the Texas Instruments Web site. The user's guide is included in the zip file download that also contains the IQmath library (registration required).
C2000 Absolute IQN, C2000 Division IQN, C2000 Float to IQN, C2000 Fractional part IQN, C2000 Fractional part IQN x int32, C2000 Integer part IQN, C2000 Integer part IQN x int32, C2000 IQN to Float, C2000 IQN x int32, C2000 IQN x IQN, C2000 IQN1 to IQN2, C2000 IQN1 x IQN2, C2000 Magnitude IQN, C2000 Saturate IQN, C2000 Square Root IQN, C2000 Trig Fcn IQN