package
Control.Multirotor.LogLinear.Gains
Hover-linearized continuous-time LQR gains
The default matrix is the continuous-time algebraic-Riccati solution
about hover with Q = 8 I, R = I, and
g = 9.8 m/s2. It is exposed as a replaceable controller
parameter; applications with different dynamics or cost weights should
supply their own gain.
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| constant | positionHorizontal | Real | = -2.775042319292923 | |
| constant | positionVertical | Real | = -2.786485597992051 | |
| constant | positionVelocityHorizontal | Real | = 0.4285602828231471 | |
| constant | positionVelocityVertical | Real | = 0.4852813742385701 | |
| constant | positionAttitudeCoupling | Real | = 0.339817907297276 | |
| constant | velocityHorizontal | Real | = -1.9507053321251042 | |
| constant | velocityVertical | Real | = -2.9555142930282465 | |
| constant | velocityAttitudeCoupling | Real | = 2.2064009963856357 | |
| constant | tilt | Real | = -6.801601132247243 | |
| constant | yaw | Real | = -2.82842712474619 | |
| constant | feedback | Real | [9, 9] = [
positionHorizontal, 0.0, 0.0,
positionVelocityHorizontal, 0.0, 0.0,
0.0, positionAttitudeCoupling, 0.0;
0.0, positionHorizontal, 0.0,
0.0, positionVelocityHorizontal, 0.0,
-positionAttitudeCoupling, 0.0, 0.0;
0.0, 0.0, positionVertical,
0.0, 0.0, positionVelocityVertical,
0.0, 0.0, 0.0;
positionVelocityHorizontal, 0.0, 0.0,
velocityHorizontal, 0.0, 0.0,
0.0, -velocityAttitudeCoupling, 0.0;
0.0, positionVelocityHorizontal, 0.0,
0.0, velocityHorizontal, 0.0,
velocityAttitudeCoupling, 0.0, 0.0;
0.0, 0.0, positionVelocityVertical,
0.0, 0.0, velocityVertical,
0.0, 0.0, 0.0;
0.0, -positionAttitudeCoupling, 0.0,
0.0, velocityAttitudeCoupling, 0.0,
tilt, 0.0, 0.0;
positionAttitudeCoupling, 0.0, 0.0,
-velocityAttitudeCoupling, 0.0, 0.0,
0.0, tilt, 0.0;
0.0, 0.0, 0.0,
0.0, 0.0, 0.0,
0.0, 0.0, yaw] | Gain K for the convention u = K zeta |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
package Gains "Hover-linearized continuous-time LQR gains"
constant Real positionHorizontal = -2.775042319292923;
constant Real positionVertical = -2.786485597992051;
constant Real positionVelocityHorizontal = 0.4285602828231471;
constant Real positionVelocityVertical = 0.4852813742385701;
constant Real positionAttitudeCoupling = 0.339817907297276;
constant Real velocityHorizontal = -1.9507053321251042;
constant Real velocityVertical = -2.9555142930282465;
constant Real velocityAttitudeCoupling = 2.2064009963856357;
constant Real tilt = -6.801601132247243;
constant Real yaw = -2.82842712474619;
constant Real feedback[9, 9] = [
positionHorizontal, 0.0, 0.0,
positionVelocityHorizontal, 0.0, 0.0,
0.0, positionAttitudeCoupling, 0.0;
0.0, positionHorizontal, 0.0,
0.0, positionVelocityHorizontal, 0.0,
-positionAttitudeCoupling, 0.0, 0.0;
0.0, 0.0, positionVertical,
0.0, 0.0, positionVelocityVertical,
0.0, 0.0, 0.0;
positionVelocityHorizontal, 0.0, 0.0,
velocityHorizontal, 0.0, 0.0,
0.0, -velocityAttitudeCoupling, 0.0;
0.0, positionVelocityHorizontal, 0.0,
0.0, velocityHorizontal, 0.0,
velocityAttitudeCoupling, 0.0, 0.0;
0.0, 0.0, positionVelocityVertical,
0.0, 0.0, velocityVertical,
0.0, 0.0, 0.0;
0.0, -positionAttitudeCoupling, 0.0,
0.0, velocityAttitudeCoupling, 0.0,
tilt, 0.0, 0.0;
positionAttitudeCoupling, 0.0, 0.0,
-velocityAttitudeCoupling, 0.0, 0.0,
0.0, tilt, 0.0;
0.0, 0.0, 0.0,
0.0, 0.0, 0.0,
0.0, 0.0, yaw]
"Gain K for the convention u = K zeta";
annotation(Documentation(info="<html>
<p>The default matrix is the continuous-time algebraic-Riccati solution
about hover with <code>Q = 8 I</code>, <code>R = I</code>, and
<code>g = 9.8 m/s2</code>. It is exposed as a replaceable controller
parameter; applications with different dynamics or cost weights should
supply their own gain.</p>
</html>"));
end Gains;