📄 fdclib5.mdl
字号:
ForegroundColor "blue"
DropShadow on
ShowName off
OpenFcn "browse xdotcorr"
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskDisplay "disp('XDOTCORR (Beaver)\\nM.O. Rauw, March "
"2003')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 12, 0, 0, 0]
Position [85, 58, 90, 237]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Outputs "12"
}
Block {
BlockType Mux
Name "Mux1"
Ports [12, 1, 0, 0, 0]
Position [505, 60, 510, 235]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "12"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1, 0, 0, 0]
Position [145, 238, 150, 272]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "[11 1 5]"
DisplayOption "none"
}
Block {
BlockType Fcn
Name "beta dot correction"
Position [185, 245, 435, 265]
FontName "Arial"
FontSize 11
Expr "u[12] / (1 - (u[3]*u[13]*b*S*CYbdot)/(4*m))"
}
Block {
BlockType Outport
Name "xdot\ncorrected"
Position [540, 143, 570, 157]
FontName "Arial"
FontSize 11
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "yhlp"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "beta dot correction"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "xdot\ncorrected"
DstPort 1
}
Line {
SrcBlock "xdot, not\ncorrected\n"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [30, 0; 0, 160]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 12
DstBlock "Mux1"
DstPort 12
}
Line {
SrcBlock "Demux"
SrcPort 11
DstBlock "Mux1"
DstPort 11
}
Line {
SrcBlock "Demux"
SrcPort 10
DstBlock "Mux1"
DstPort 10
}
Line {
SrcBlock "Demux"
SrcPort 9
DstBlock "Mux1"
DstPort 9
}
Line {
SrcBlock "Demux"
SrcPort 8
DstBlock "Mux1"
DstPort 8
}
Line {
SrcBlock "Demux"
SrcPort 7
DstBlock "Mux1"
DstPort 7
}
Line {
SrcBlock "Demux"
SrcPort 6
DstBlock "Mux1"
DstPort 6
}
Line {
SrcBlock "Demux"
SrcPort 5
DstBlock "Mux1"
DstPort 5
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "yatm"
SrcPort 1
Points [70, 0; 0, -20]
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "beta dot correction"
SrcPort 1
Points [30, 0; 0, -160]
DstBlock "Mux1"
DstPort 3
}
}
}
Block {
BlockType Gain
Name "xfix"
Position [370, 407, 415, 443]
DropShadow on
ShowName off
InitFcn "if exist('xfix')==0, xfix=ones(12,1); end"
FontName "Arial"
FontSize 11
Gain "xfix"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "xdot"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "xyHdot"
Ports [2, 1, 0, 0, 0]
Position [15, 244, 75, 286]
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskType "xyHdot"
MaskDescription "Calculation of d(xe)/dt, d(ye)/dt, and dH/dt"
MaskHelp "eval('browse xyhdot')"
MaskDisplay "disp('xe dot\\nye dot\\nH dot')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "xyHdot"
Location [6, 44, 577, 322]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "ybvel*"
Position [15, 103, 45, 117]
FontSize 11
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "uxyH"
Position [15, 58, 45, 72]
FontSize 11
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
Name "0"
Ports [0, 0, 0, 0, 0]
Position [5, 5, 150, 35]
ForegroundColor "blue"
DropShadow on
ShowName off
OpenFcn "browse xyhdot"
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskDisplay "disp('XYHDOT\\nM.O. Rauw, March 2003')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Fcn
Name "H dot"
Position [160, 215, 460, 235]
FontName "Arial"
FontSize 11
Expr "u[30]*u[26] - (u[31]*u[28]+u[32]*u[29])*u[2"
"7]"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [95, 57, 100, 88]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "[29 3]"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1, 0, 0, 0]
Position [495, 64, 500, 111]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1, 0, 0, 0]
Position [95, 136, 100, 169]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "[29 2]"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux5"
Ports [3, 1, 0, 0, 0]
Position [495, 167, 500, 213]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Fcn
Name "tmp1"
Position [160, 65, 460, 85]
ShowName off
FontName "Arial"
FontSize 11
Expr "u[30]*u[27] + (u[31]*u[28]+u[32]*u[29])*u[2"
"6]"
}
Block {
BlockType Fcn
Name "tmp2"
Position [160, 90, 460, 110]
ShowName off
FontName "Arial"
FontSize 11
Expr "u[31]*u[29] - u[32]*u[28]"
}
Block {
BlockType Fcn
Name "xe dot"
Position [160, 145, 460, 165]
FontName "Arial"
FontSize 11
Expr "u[30]*u[25] - u[31]*u[24]"
}
Block {
BlockType Fcn
Name "ye dot"
Position [160, 180, 460, 200]
FontName "Arial"
FontSize 11
Expr "u[30]*u[24] + u[31]*u[25]"
}
Block {
BlockType Outport
Name "yxyH"
Position [525, 183, 555, 197]
FontSize 11
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "tmp1"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "H dot"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Mux5"
DstPort 3
}
Line {
SrcBlock "xe dot"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "tmp2"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "ye dot"
SrcPort 1
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "yxyH"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "ye dot"
DstPort 1
}
Branch {
DstBlock "xe dot"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 25]
Branch {
Points [0, 125]
DstBlock "H dot"
DstPort 1
}
Branch {
DstBlock "tmp2"
DstPort 1
}
}
Branch {
DstBlock "tmp1"
DstPort 1
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0; 0, 35; -435, 0]
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "ybvel*"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "uxyH"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 80]
DstBlock "Mux4"
DstPort 1
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Annotation {
Position [492, 257]
VerticalAlignment "top"
ForegroundColor "red"
Text "yxyH=[xe dot; ye dot; H dot]"
FontName "Arial"
FontSize 11
}
Annotation {
Position [72, 257]
VerticalAlignment "top"
ForegroundColor "red"
Text "uxyH=[x;Ftot;Mtot;yhlp]"
FontName "Arial"
FontSize 11
}
}
}
Annotation {
Position [232, 347]
VerticalAlignment "top"
Text "<-- Block which obtains body-axes\nvelocities f"
"rom V, alpha, and beta"
FontName "Arial"
FontSize 11
}
Annotation {
Position [235, 407]
VerticalAlignment "top"
Text "<-- Block in which corrections to the\ntime-der"
"ivatives of the states, computed\nin the subsystem 'drv' can be made.\nHere, "
"xdotcorr contains corrections for\naerodynamic model of the 'Beaver'"
FontName "Arial"
FontSize 11
}
Annotation {
Position [506, 417]
VerticalAlignment "top"
Text "<-- Gain wich implements vector \nmultiplicatio"
"n to fix states."
FontName "Arial"
FontSize 11
}
Annotation {
Position [525, 342]
VerticalAlignment "top"
Text "<-- Integrator to obtain state vector from\nits"
" time-derivative xdot. Notice the defini-\ntion of the initial condition: x0 "
"= xinco!"
FontName "Arial"
FontSize 11
}
Annotation {
Position [409, 52]
VerticalAlignment "top"
Text "|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|"
"\n|\n|"
FontName "Courier New"
FontSize 11
}
Annotation {
Position [307, 67]
VerticalAlignment "top"
ForegroundColor "red"
Text "The blocks on the left have \nbeen grouped in t"
"he \nsubsystem '12 ODEs' below:"
FontName "Arial"
FontSize 11
}
Annotation {
Position [549, 52]
VerticalAlignment "top"
ForegroundColor "red"
Text "The subsystem '12 ODEs' and the\nblocks on the "
"bottom of this window\nhave been grouped in the subsystem\n'Aircraft Equation"
"s of Motion' below:"
FontName "Arial"
FontSize 11
}
Annotation {
Position [149, 7]
VerticalAlignment "top"
ForegroundColor "blue"
Text "FDC Toolbox - Equations of Motion library"
FontName "Times New Roman"
FontSize 14
FontWeight "bold"
}
Annotation {
Position [180, 312]
VerticalAlignment "top"
Text "-----------------------------------------------"
"--------"
FontName "Courier New"
}
Annotation {
Position [159, 271]
Text "<----- Time derivatives of\nthe aircraft's x a"
"nd y coor-\ndinates and the altitude"
FontName "Arial"
FontSize 11
}
Annotation {
Position [149, 206]
Text "<-- Time derivatives of\nthe Euler angles"
FontName "Arial"
FontSize 11
}
Annotation {
Position [149, 141]
Text "<-- Time derivatives of\nthe angular velocities"
FontName "Arial"
FontSize 11
}
Annotation {
Position [154, 86]
Text "<-- Time derivatives of \nthe airspeed, angle o"
"f\nattack, and sideslip angle\n"
FontName "Arial"
FontSize 11
}
Annotation {
Position [510, 312]
VerticalAlignment "top"
Text "-----------------------------------------------"
"--------"
FontName "Courier New"
}
Annotation {
Position [544, 252]
VerticalAlignment "top"
ForegroundColor "red"
Text "Note: this subsystem is aircraft-independent,\n"
" _except_ for the block xdotcorr (Beaver).\n"
FontName "Arial"
FontSize 11
}
Annotation {
Position [350, 498]
ForegroundColor "red"
Text "These blocks are all necessary to solve the equ"
"ation of motion!"
FontName "Arial"
FontSize 11
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -