a script for calculating the state feedback matrix k using LQR to control both the inclination angle and position of a self balancing robot. the equation for calculating the moment of inertial fo the chassis ( pendudlum ) : I =(1/12) * mass of chassis/ ( height^2 + width^2 )
https://ctms.engin.umich.edu/CTMS/index.php?example=InvertedPendulum§ion=ControlStateSpace date : 28/03/2021 time : 12:32