Tool/software:
I'm not sure about the unit for the speed reference. Is it percentage (0 ~ 100) or in Hz (0 ~ MAX_SPEED).
I ask this because I calculated the speed KP using the unit A/Hz. I'm not sure whether this is the value I should input into the SPD_LOOP_KP
register or if I need to normalize it based on MAX_SPEED.
And what about the current gains? Is the unit V/A?
Regarding the KI gains (speed and current), I modeled them as continuous gains (A/(Hz·s) for speed KI). Since this is a discrete control loop, do I need to scale this gain by the control loop frequency, or should I use the continuous gain value directly?