balancing stick

2-DOF reaction wheel stick. Assumed axes had no coupling and designed a LQR controller. Key to stability was an integrator on flywheel velocity to drive it to zero at steady state.