Torday,I use the GFLIB_AtanYXShifted in NXP_GFLIB of Motor Control Development Toolbox for MPC564xL v1.3.0,but the answer is not accordance with the file of MCLIB_MPC564xL_rev_0_91,but the simulation is not the same as the discription of MCLIB_MPC564xL_rev_0_91 ,in the MCLIB_MPC564xL_rev_0_91 file ,the 3.9.8 Code exzample discribe the " Output angle should be 0.138888889 rad ",but i simuliated that the result is 0.6923,and i built a model,as the content in MCLIB_MPC564xL_rev_0_91 file ,the content :
the model shows that:
the result is 0.4363 ,and the result is not the same as 0.6923,shows as follow:
the model above ,the parameter is the same as the exzample :
The attachment is the model.
I thought the GFLIB_AtanYXShifted is calculated as follow,
Original Attachment has been moved to: Atanxy_Shift.mdl.zip