I’ve been trying to implement LQR with state-observer in real-time. Since, I couldn’t manage to implement it using MATLAB real-time workshop, I had to write the C code for LQR and state observer. However, it seems like the C code isn’t working at all and I can’t get my head around it. My first question is, when I design my state-feedback matrix and observer matrix in MATLAB before using it in my C code, do I have to design them (K and L) in discrete-time. I appreciate if someone can give me some advice how to implement LQR+observer in real-time using either MATLAB or C, as I don’t really know why I keep getting issues with implementation.

Best regards

More Amin Noshadi's questions See All
Similar questions and discussions