This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

controlsuit 无传感器永磁同步问题



v.Fsmopos = exp((-v.Rs/v.Ls)*(v.Ts));   

 v.Gsmopos = (v.Vb/v.Ib)*(1/v.Rs)*(1-v.Fsmopos);

我Rs=202ohm,Ls=0.85H,Ts=0.0001,算出来是应该是0.97左右,但是我调试的时候发现算出来是-789.0,怎么会算错呢?是不是exp函数没调用好啊,是不是哪个库函数没加啊,或者加错了啊