LQR Implementation using Simulink
I am trying to stabilize a system using LQR. I was able to find the K, Q, and R matrix. How would I translate this to simulink?
I am working on a project that requires me to use LQR. After finding the K values, Q matrix and R matrix, I don't know how to implement it in simulink. Does anyone happen to have an example of this or something similar? I am using an arduino mega and an IMU to get the readings.