Hi,
I am working on sensorless control of pmsm motor using tms320f28335 dsp chip. I wrote " C " code for sensorless control of pmsm motor using sliding mode observer for estimating rotor flux angle, there by estimate the speed. But when I am trying to run the program I am getting one software error.
" /* Initialize the SMOPOS constant module*/
smo1_const.Rs = _IQ(smo1_const.Rs);
smo1_const.Ls = _IQ(smo1_const.Ls);
smo1_const.Ib = _IQ(BASE_CURRENT);
smo1_const.Vb = _IQ(BASE_VOLTAGE);
smo1_const.Ts = _IQ(T);
SMO_CONST_MACRO(smo1_const); "
Above mentioned is the code and the error is :
error: expected a field name
The error is same for all the lines. I already assigned the value of "Rs" and "Ls" values initially. I don't know why I am getting this error.
Could you please suggest me how to overcome the above error.
Thanks in advance.
Best Regards,
Suneel