Tool/software: Code Composer Studio
Hi,Good day YanMingLuo
I had finished the lab 1b, current and voltage monitored at CCS almost same as actual oscilloscope result. Then I procced on lab 1C. But I feel I need some guide on gMotorVars.IqSet_A setting.
From the code, if gMotorVars.IdSet_A is 10, USER_IQ_FULL_SCALE_CURRENT_A is 500, then gMotorVars.IdRef_pu should 0.02. But I run debug, it shows value -0.83333
below two lines of code also gives error :" #175-D floating-point value does not fit in required integral type"
gMotorVars.IdRef_pu = _IQdiv(gMotorVars.IdSet_A, _IQ(USER_IQ_FULL_SCALE_CURRENT_A));
gMotorVars.IqRef_pu = _IQdiv(gMotorVars.IqSet_A, _IQ(USER_IQ_FULL_SCALE_CURRENT_A));
My setting:
gMotorVars.IqSet_A : 10
USER_IQ_FULL_SCALE_CURRENT_A :500
My run debug page screen shot.
BTW, Do you have we chat? I would like to get in contact with you. you may message me at sun_chunlei.