📄 fdclib6.mdl
字号:
Expr "u[9]*cos(u[8]-alpha0)"
}
Block {
BlockType Fcn
Name "chi"
Position [160, 120, 355, 140]
FontName "Arial"
Expr "u[3]+u[7]"
}
Block {
BlockType Fcn
Name "fpa"
Position [160, 85, 355, 105]
FontName "Arial"
Expr "u[13]/9.80665"
}
Block {
BlockType Fcn
Name "gamma"
Position [160, 50, 355, 70]
FontName "Arial"
Expr "asin(u[24]/u[1])"
}
Block {
BlockType Outport
Name "yfp"
Position [445, 105, 465, 125]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 15]
Branch {
DstBlock "chi"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Phi"
DstPort 1
}
}
Branch {
Points [0, -20]
Branch {
DstBlock "fpa"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "gamma"
DstPort 1
}
}
}
Line {
SrcBlock "gamma"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "fpa"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "chi"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Phi"
SrcPort 1
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "yfp"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "xdot"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "hlp"
Ports [1, 1, 0, 0, 0]
Position [295, 294, 360, 316]
Orientation left
ForegroundColor magenta
FontName "Arial"
ShowName off
ShowPortLabels off
MaskType "Hlpfcn"
MaskDescription "Help sines and cosines"
MaskHelp "eval('fdchelp hlpfcn')"
MaskDisplay "disp('hlpfcn')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "hlp"
Location [5, 40, 265, 527]
Open off
ScreenColor white
Block {
BlockType Inport
Name "x"
Position [15, 255, 35, 275]
DropShadow on
FontName "Arial"
FontSize 9
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "0"
Ports [0, 0, 0, 0, 0]
Position [15, 15, 170, 60]
ForegroundColor blue
DropShadow on
FontName "Arial"
ShowName off
OpenFcn "fdchelp hlpfcn"
ShowPortLabels off
MaskDisplay "disp('HELP FUNCTIONS\\n(often used sines "
"and cosines)\\nM.O. Rauw, October 1997')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ScreenColor white
}
}
Block {
BlockType Mux
Name "Mux"
Ports [11, 1, 0, 0, 0]
Position [185, 79, 190, 451]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "11"
}
Block {
BlockType Fcn
Name "cos alpha"
Position [95, 80, 155, 100]
FontName "Arial"
Expr "cos(u[2])"
}
Block {
BlockType Fcn
Name "cos beta"
Position [95, 150, 155, 170]
FontName "Arial"
Expr "cos(u[3])"
}
Block {
BlockType Fcn
Name "cos phi"
Position [95, 430, 155, 450]
FontName "Arial"
Expr "cos(u[9])"
}
Block {
BlockType Fcn
Name "cos psi"
Position [95, 290, 155, 310]
FontName "Arial"
Expr "cos(u[7])"
}
Block {
BlockType Fcn
Name "cos theta"
Position [95, 360, 155, 380]
FontName "Arial"
Expr "cos(u[8])"
}
Block {
BlockType Fcn
Name "sin alpha"
Position [95, 115, 155, 135]
FontName "Arial"
Expr "sin(u[2])"
}
Block {
BlockType Fcn
Name "sin beta"
Position [95, 185, 155, 205]
FontName "Arial"
Expr "sin(u[3])"
}
Block {
BlockType Fcn
Name "sin phi"
Position [95, 395, 155, 415]
FontName "Arial"
Expr "sin(u[9])"
}
Block {
BlockType Fcn
Name "sin psi"
Position [95, 255, 155, 275]
FontName "Arial"
Expr "sin(u[7])"
}
Block {
BlockType Fcn
Name "sin theta"
Position [95, 325, 155, 345]
FontName "Arial"
Expr "sin(u[8])"
}
Block {
BlockType Fcn
Name "tan beta"
Position [95, 220, 155, 240]
FontName "Arial"
Expr "tan(u[3])"
}
Block {
BlockType Outport
Name "yhlp"
Position [225, 255, 245, 275]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "x"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "sin psi"
DstPort 1
}
Branch {
Points [0, -35]
Branch {
Points [0, -35]
Branch {
DstBlock "sin beta"
DstPort 1
}
Branch {
Points [0, -35]
Branch {
DstBlock "cos beta"
DstPort 1
}
Branch {
Points [0, -35]
Branch {
DstBlock "sin alpha"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "cos alpha"
DstPort 1
}
}
}
}
Branch {
DstBlock "tan beta"
DstPort 1
}
}
Branch {
Points [0, 35]
Branch {
Points [0, 35]
Branch {
DstBlock "sin theta"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
DstBlock "cos theta"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
DstBlock "sin phi"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "cos phi"
DstPort 1
}
}
}
}
Branch {
DstBlock "cos psi"
DstPort 1
}
}
}
Line {
SrcBlock "cos alpha"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "sin alpha"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "cos beta"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "sin beta"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "tan beta"
SrcPort 1
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "sin psi"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "cos psi"
SrcPort 1
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "sin theta"
SrcPort 1
DstBlock "Mux"
DstPort 8
}
Line {
SrcBlock "cos theta"
SrcPort 1
DstBlock "Mux"
DstPort 9
}
Line {
SrcBlock "sin phi"
SrcPort 1
DstBlock "Mux"
DstPort 10
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "yhlp"
DstPort 1
}
Line {
SrcBlock "cos phi"
SrcPort 1
DstBlock "Mux"
DstPort 11
}
Annotation {
Position [526, 132]
VerticalAlignment top
FontName "Arial"
FontSize 9
Text "'"
}
}
}
Block {
BlockType SubSystem
Name "out"
Ports [5, 3, 0, 0, 0]
Position [455, 145, 520, 225]
FontName "Arial"
ShowName off
ShowPortLabels off
System {
Name "out"
Location [4, 61, 291, 360]
Open off
ScreenColor white
Block {
BlockType Inport
Name "x"
Position [20, 55, 40, 75]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "xdot"
Position [20, 95, 40, 115]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "yhlp"
Position [20, 155, 40, 175]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "3"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Ftot"
Position [20, 215, 40, 235]
DropShadow on
FontName "Arial"
Port "4"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Fgrav"
Position [20, 255, 40, 275]
DropShadow on
FontName "Arial"
Port "5"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "0"
Ports [0, 0, 0, 0, 0]
Position [15, 5, 170, 35]
ForegroundColor blue
DropShadow on
FontName "Arial"
ShowName off
OpenFcn "fdchelp moreouts"
ShowPortLabels off
MaskDisplay "disp('Additional outputs (level 3)\\nM.O. "
"Rauw')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ScreenColor white
}
}
Block {
BlockType SubSystem
Name "accel"
Ports [2, 1, 0, 0, 0]
Position [130, 219, 190, 246]
FontName "Arial"
ShowName off
ShowPortLabels off
MaskType "accel"
MaskDescription "Body axes accelerations and \nspecific "
"forces."
MaskHelp "eval('fdchelp accel')"
MaskPromptString "Mass of the aircraft [kg]:"
MaskStyleString "edit"
MaskVariables "m=@1;"
MaskDisplay "disp('Accel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "GM1(10)"
System {
Name "accel"
Location [4, 42, 510, 325]
Open off
ScreenColor white
Block {
BlockType Inport
Name "Ftot"
Position [20, 130, 40, 150]
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "Fgrav"
Position [20, 175, 40, 195]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "0"
Ports [0, 0, 0, 0, 0]
Position [15, 15, 165, 45]
ForegroundColor blue
DropShadow on
FontName "Arial"
ShowName off
OpenFcn "fdchelp accel"
ShowPortLabels off
MaskDisplay "disp('ACCEL\\nM.O. Rauw, October 1997')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "0"
Location [99, 72, 274, 227]
Open off
ScreenColor white
}
}
Block {
BlockType Fcn
Name "Ax"
Position [145, 65, 350, 85]
FontName "Arial"
Expr "(u[1]-u[4])/(m*9.80665)"
}
Block {
BlockType Fcn
Name "Ay"
Position [145, 100, 350, 120]
FontName "Arial"
Expr "(u[2]-u[5])/(m*9.80665)"
}
Block {
BlockType Fcn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -