Using the DRV-8312-69M-KIT and the DT4260 motor, In lab 5a, and Lab 5b, I calculated the gains of the PID control as follows: Kp_speed=0.897, Ki_speed=0.045, Kp_idq=0.312, Ki_idq=0.043, inertia = 0.01709, Friction = 0.04595. In Lab 5e, calculated VelCTLBwScale = 6.1. I can run the motor with no problem to maximum speed in lab 5e, even at 5K rpm. In lab 5f, with spinTAC enabled, the motor ran pefectly. Now, in lab 5f, when i disable the SpiTAC so motor will run using pid gains that get loaded by the CCS which are different than the above, CCS gains, Kp_speed = 8.0, Ki_speed=0.0533, Kp_idq=0.972076, and Ki_idq=0.04336, motor runs very good. When I enter my values from lab 5a, and 5b, the motor will oscillate in lab 5f, but it ran perfectly before.
Questions: 1. Why are my gain values different than what CCS calculates or get loaded automatically when running lab 5f. 2. The gains that I calculated in labs 5a, and 5b, I feel are correct, but when entered in lab 5f, motor oscillates.
Thank you