Other Parts Discussed in Thread: MOTORWARE
I've been working with an older version of Motorware to implement and FOC drive using the 28388.
I have my own outer control loop that is called from the main motor interrupt in the example project. I compile it for level 4 and my countrol loop essentially injects a calculated value in to pi_iq.ref.
This all works just dandy but I want to write my own initial alignment routine as well. The "Wait for encoder" loop does not always move the load to find the index.
However, if the lsw does NOT equal "ENC_CALIBRATION_DONE", setting pi_iq..ref just keeps the rotor aligned with a pole and the motor does not rotate.
What is the actual code that causes the motor to actually rotate?
Thanks.
David