Hi,
Presently implementing level 5 of the sensorless PMSM with DRV8301 kit. I need to correct the position of smo1.theta w.r.t rg1.out (attached the images)
Incorporated the following changes
_iq smo1pos_offset = _IQ(0.0); // SMO Rotary position correction
Added the following lines for dlog
DlogCh1 = _IQtoQ15(smo1.Theta + smo1pos_offset);
Amazing observation is if I increase the smo1pos_offset thru watch window the position of rg1.out too is shifted. Not sure why.?. It should not effect rg1.out. Pl suggest the best way to incorporate the requirement.
thx