Part Number: LAUNCHXL-F280049C
SDK v2.01 LAB-is07
Conditions:
1. PI_setGains() via (pi.h) will not act on inline calls to dynamically update integral or proportion, <5Hz motor speed.
2. Slow speed estimator startup time becomes very long (60secs), with or without inline RS online re-calibration enabled.
3. Kp_spd, Ki_spd defaults (0.1, 0.01) respectively set significantly smaller values, (labs.h) or by (user.c) inertia calculations.
4. Default values BWc_rps, BWdelta (100, 8.0) respectively when set much larger values do not effect slow speed estimator.
5. PI speed controller causes motor to stall >80Hz maintaining default Kp_spd, Ki_spd (labs.h).
Q1: Why does PI_setGains() not pass or accept new input values during motor startup sequence, even <1Hz motor speed?
Q2: Was there fixes made to PI speed control values passed to InvPark or SVM module in SDK v3.01?
The simple work around is to set Kp_spd, Ki_spd very high to Rapidly get motor rolling, defaults in (labs.h). Then widen PI aperture to reduce motor current when force angle flag disables >1Hz speed. Otherwise PI speed controller rapidly over runs SVM duty cycle drives NAN into CMPA >80Hz when rotor inertia >0.1kgm2. Or kp/ki_spd set very low to arrest SVM overrun via PI gains set (user.c) kgm2 inertia calculations enabled.

