If you can figure out certain tell tale points when Kp and Ki should transition, it would be very easy to change it in code. Even have some sort of continuous function that has kp and ki as its outputs depending on various inputs like pwm duty and current feedback.
|