Hi forum,
Is it possible to call the same function two times in the same intervalTimer?
I am trying to compute the same function with different input in an interval timer that runs at 1 kHz.
PID_Compute is a home-made PID function.
Thank you
Is it possible to call the same function two times in the same intervalTimer?
I am trying to compute the same function with different input in an interval timer that runs at 1 kHz.
Code:
void functionMotorControlTimer()
{
Input1 = (float)(LC_1);
Input2 = (float)(LC_2);
Output1=PID_Compute(Input1,Setpoint1);
Output2=PID_Compute(Input2,Setpoint2);
float pid_output1 = (float)(Output1);
float pid_output2 = (float)(Output2);
}
PID_Compute is a home-made PID function.
Thank you