I have designed a Control System and don't know how to implement it.
I have modeled the physical system and have designed the control based on the State Space method.
The state space form is as follows: x' = Ax + Bu; y = Cx;
A, B, and C are matrices, x is the state vector, u is the input vector, and y is the output vector.
I designed the A, B, and C matrices in MATLAB, and want to implement it in C onto a micro-controller.
How do I actually implement my system now?
I am wanting to take two readings from a sensor that is measuring the system I attempting to control, send those two readings into my controller, and send one output back to my system.
I have designed the controller based on the dynamics of the system and techniques that are taught in an undergraduate level Automatic Control Systems class. Do the measured values go into the input vector?
And then I send the previously determined output value back into the system, and repeat for each sample?