Skip to content
Beta.slx@modelscript/simulink 10 diagnostic rules
Parser WASM GLR
Diagnostics 10 rules
DAE Arena Lowering
Simulation Co-sim / Export
Projections Modelica, DAE
Live ExamplePitchHoldAutopilot.mdl

MATLAB Simulink Pitch-Hold Autopilot Block Diagram

Continuous-time feedback control loop with a step reference, summing junction, PID compensator, airframe short-period transfer function, and scope.

Playground
Source (65 lines)
1Model {
2  Name "PitchHoldAutopilot"
3  System {
4    Name "PitchHoldAutopilot"
5    Block {
6      BlockType Step
7      Name "ThetaRef"
8      Position [40, 90, 80, 130]
9    }
10    Block {
11      BlockType Sum
12      Name "PitchError"
13      Inputs "+-"
14      Position [140, 90, 180, 130]
15    }
16    Block {
17      BlockType Gain
18      Name "KpGain"
19      Gain "4.8"
20      Position [240, 90, 290, 130]
21    }
22    Block {
23      BlockType TransferFcn
24      Name "AirframeDynamics"
25      Numerator "[12.5]"
26      Denominator "[1 3.2 14.0]"
27      Position [360, 85, 460, 135]
28    }
29    Block {
30      BlockType Scope
31      Name "PitchScope"
32      Position [530, 90, 570, 130]
33    }
34    Line {
35      SrcBlock "ThetaRef"
36      SrcPort 1
37      DstBlock "PitchError"
38      DstPort 1
39    }
40    Line {
41      SrcBlock "PitchError"
42      SrcPort 1
43      DstBlock "KpGain"
44      DstPort 1
45    }
46    Line {
47      SrcBlock "KpGain"
48      SrcPort 1
49      DstBlock "AirframeDynamics"
50      DstPort 1
51    }
52    Line {
53      SrcBlock "AirframeDynamics"
54      SrcPort 1
55      DstBlock "PitchScope"
56      DstPort 1
57    }
58    Line {
59      SrcBlock "AirframeDynamics"
60      SrcPort 1
61      DstBlock "PitchError"
62      DstPort 2
63    }
64  }
65}
Simulink Signal-Flow Block Diagram
PitchHoldAutopilot — Simulink Block Diagram UNK Unknown ThetaRef ∑ PitchError ▶ 4.8 KpGain TF [12.5] AirframeDynamics SCOPE ∿ PitchScope
Drag to pan · Click % to reset

Open-Core under the GNU AGPL v3 License; Enterprise Edition (ee/) under the ModelScript Enterprise License. • Trademark Policy