fxAtan2

Block Category: Fixed Point

Inputs: fx1.16 or fx1.32 format.

Description: The fxAtan2 block computes the four-quadrant inverse tangent (arctangent) of the input signals in scaled fixed-point (scaled_int) notation. The block automatically uses fx1.16 or fx1.32 based on the data type of the input signal. The fxAtan2 block uses the signs of both input signals to determine the output signal. The block output is in “per unit” angles. This means the angle output is implicitly divided by 2π so that a cycle of sin/cos input produces a value sweeping from 0 –– (instead of 0 – 2π). Typically, this block is fed by a sin/cos sensor input to produce a “per unit” angle value. For floating-point implementation, use the atan2 block.