- Posts: 22
- Thank you received: 0
PID feedback derivative
5 years 2 months ago #216989
by bierluiz
PID feedback derivative was created by bierluiz
Hello,
I would like to sample the pin pid.N.feedback-deriv, but it is an input pin. Is there a way to do it?
Also, from the PID page: "If no signal is connected then the derivative will be estimated numerically". Where can I access this information? Is there a way to change/copy its value to an output pin?
Thank you.
I would like to sample the pin pid.N.feedback-deriv, but it is an input pin. Is there a way to do it?
Also, from the PID page: "If no signal is connected then the derivative will be estimated numerically". Where can I access this information? Is there a way to change/copy its value to an output pin?
Thank you.
Please Log in to join the conversation.
5 years 2 months ago #217014
by andypugh
Replied by andypugh on topic PID feedback derivative
You should be able to get the same numerical value by using the "ddt" hal component on the feedback value.
github.com/LinuxCNC/linuxcnc/blob/master...omponents/pid.c#L376
github.com/LinuxCNC/linuxcnc/blob/master...omponents/pid.c#L376
Please Log in to join the conversation.
Time to create page: 0.069 seconds
