STM32F746ZG Nucleo144 and CMSIS PID Controller Problem
Posted: Thu May 26, 2016 11:24 am
Hi i want to implement a PID controller and read that there is native support for this function using the CMSIS library.
I've initialized the PID
and i'm calling the PID function with a constant value
I should be getting on the output the value 10*100=1000 since i only have a proportional gain, instead a get 0, what could be the problem?
Thanks
LM
I've initialized the PID
Code: Select all
S.Kd=0;
S.Ki=0;
S.Kp=100;
arm_pid_init_q31(&S, 1);and i'm calling the PID function with a constant value
Code: Select all
q31_t x;
x=arm_pid_q31(&S,10);I should be getting on the output the value 10*100=1000 since i only have a proportional gain, instead a get 0, what could be the problem?
Thanks
LM