https://www.mathworks.com/help/ti-c2000/ug/pmsm-offset-calibration.html
Quadrature Encoder Offset Calibration for PMSM Motor Using C2000 - MATLAB & Simulink
This example calculates the offset between the d-axis of the rotor and encoder index pulse position as detected by the quadrature encoder sensor.
quadrature encoderpmsm motoroffsetcalibration
https://www.mathworks.com/help/ti-c2000/ug/foc-qep-example.html
Field-Oriented Control of PMSM with Quadrature Encoder Using C2000 Processors - MATLAB & Simulink
This example implements the field-oriented control (FOC) technique to control the speed of a three-phase permanent magnet synchronous motor (PMSM).
field oriented control