Hi Ti,
I found the runOffsetsCalculation is different between lab2 and lab5.
In lab2 :
invVdcbus = 1.0f / adcData.dcBus_V;
with this assignment, I got the voltage offset show as below:
#define VA_OFFSET_V (0.503741026) // ~=1.0
#define VB_OFFSET_V (0.501680434) // ~=1.0
#define VC_OFFSET_V (0.501108825) // ~=1.0
And use this offset for lab5(disable offset cal), I got the Rs show as below
#define USER_MOTOR_Rs_Ohm (0.03342437)
and in lab5
invVdcbus = 2.0f / adcData.dcBus_V;
with this assignment, I got the voltage offset show as below
#define VA_OFFSET_V (1.05742781) // ~=1.0
#define VB_OFFSET_V (1.02680637) // ~=1.0
#define VC_OFFSET_V (1.02108255) // ~=1.0
use this offset for identify, I got the Rs show as below
#define USER_MOTOR_Rs_Ohm (0.0176245)
could you let me know which one is correct?