SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
The FOC Algorithm uses an integrated Speed/Power Control Loop that helps maintain a constant Speed/Power over varying operating conditions, as shown in Table 7-3.
| Variable | Description |
|---|---|
| pUserInputRegs->systemParams.speedLoopKp | Proportional gain for the closed loop speed / power control in float |
| pUserInputRegs->systemParams.speedLoopKi | Integral gain for the closed loop speed / power control in float |
The output of the speed loop / power Loop is used to generate the current reference for torque (current loop) control. When output of the speed loop / Power Loop saturates, the integrator is disabled to prevent integral wind-up. The tuning of speed loop Kp and Ki is experimental. Table 7-4 shows general guidelines for changing PI parameters.
| Parameter | Rise Time | Overshoot | Settling Time | Stead State Error | Stability |
|---|---|---|---|---|---|
| Kp | Decreases | Increases | Small Change | Decreases | Degrades |
| Ki | Decreases | Increases | Increases | Eliminates | Degrades |