A method to set the values of Q & R matrix in a lqr problem

Someone know a method to set the values of Q & R matrix in a LQR problem. I'm implementing a autopilot for an aircraft and with a trial and error
method I have or an unstable system or a too slow system. Thanks a lot
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

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.