Block Inputs: fx1.16 or fx1.32 format.

The atan2 block computes the four-quadrant inverse tangent (arctangent) of the input signals in scaled fixed-point notation. The block will automatically take on fx1.16 or fx1.32 based on the data type of the input signal. The atan2 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 will produce 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.