I wanna 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 about the module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I wanna 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 about the module

Jump to solution
1,062 Views
edenli
Contributor V

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 :
181097_181097.pngpastedImage_1.png

the model shows that:

181098_181098.pngpastedImage_2.png

the result is 0.4363 ,and the result is not the same as  0.6923,shows as follow:

181099_181099.pngpastedImage_3.png

not:

 the model above ,the parameter is the same as the exzample :

181100_181100.pngpastedImage_4.png

The attachment is the model.

 

I thought the GFLIB_AtanYXShifted is calculated as follow,

181101_181101.pngpastedImage_5.png

the return is the 181104_181104.pngpastedImage_8.png,my thought is right or not?   Now,i don't know how to do!

Original Attachment has been moved to: Atanxy_Shift.mdl.zip

1 Solution
879 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Eden Li, 

As mentioned in the other thread About the acos and square module in the Motor Control Development Toolbox for MPC564xL v1.3.0 we have a newer library version AMMCLIB RTM release v1.1.8 (available for evaluation purposes via web http://www.nxp.com/automclib)  that you should try. 

In this particular example the documentation contains an error. The expected results is 0.69228911 rad as the result computed by the Simulink model.

Please download the library and refer to Reference Manual. You should see: 

atanyx.JPG

Hope this helps!

Daniel

View solution in original post

2 Replies
880 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Eden Li, 

As mentioned in the other thread About the acos and square module in the Motor Control Development Toolbox for MPC564xL v1.3.0 we have a newer library version AMMCLIB RTM release v1.1.8 (available for evaluation purposes via web http://www.nxp.com/automclib)  that you should try. 

In this particular example the documentation contains an error. The expected results is 0.69228911 rad as the result computed by the Simulink model.

Please download the library and refer to Reference Manual. You should see: 

atanyx.JPG

Hope this helps!

Daniel

879 Views
edenli
Contributor V

OK,Thanks a lot!

0 Kudos