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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,493 次查看
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 解答
1,310 次查看
Daniel_Popa
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

在原帖中查看解决方案

2 回复数
1,311 次查看
Daniel_Popa
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

1,310 次查看
edenli
Contributor V

OK,Thanks a lot!

0 项奖励
回复