Step 1: Implement a PID controller using traditional transfer function
Step 2: Use one of the many recognized ways of translating a transfer
function to a state-space controller.
I would suggest that you keep the P, I and D terms in parallel and use a
controller that implements the two memory terms (I and D) separately;
you'll end up with a controller that's easier to understand and to add
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.