- Posts: 18
- Thank you received: 0
PID Error Calculation
4 years 4 months ago #244351
by cprhodin
PID Error Calculation was created by cprhodin
Recently I've been tuning my system by first setting the PID coefficients to 0 and setting the FF* block to make the following error (as seen in halscope) as small as possible. After that I tune the PID to compensate for the vagaries of the system. When I tune this way I think there should be a one stage delay between the command input and the command/feedback adder. The idea being that if the FF* tuning was perfect there would be no following error resulting in a zero out of the PID. Without the delay the PID would always see an error due to acceleration.
Has anyone considered adding this delay stage?
Has anyone considered adding this delay stage?
Please Log in to join the conversation.
4 years 4 months ago #244419
by PCW
Replied by PCW on topic PID Error Calculation
I believe that is done by setting the error-previous-target parameter true
Please Log in to join the conversation.
4 years 4 months ago #245634
by cprhodin
Replied by cprhodin on topic PID Error Calculation
OK, I see that in the code. I was looking at the diagrams.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
4 years 3 months ago #246867
by Todd Zuercher
Replied by Todd Zuercher on topic PID Error Calculation
It also helps to look at the PID-error instead of or in addition to the joint or axis f-error when tuning.
Please Log in to join the conversation.
Time to create page: 0.092 seconds
