C programming steps to auto set PID gains Kp,Ki,Kd using STM32 ?
i want to set PID gains by auto tuning process how can i achieve this by using STM32 C code or any eample ?
i want to set PID gains by auto tuning process how can i achieve this by using STM32 C code or any eample ?
Yes, you can convert your Simulink into C code for STM32 using Embedded Coder. The code generated is ANSI / ISO C code that is optimized for deployment on embedded systems. You would import the code generated for your algorithm (so auto-tuned PID in this case) into your existing SW project / IDE and integrate it there for deployment to STM32. This is the generic workflow.
There are some custom workflows you can also look at using STM32-MAT/Target (authored by ST) and Nucleo / Discovery Support packages (authored by MathWorks).
-b
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.