📄 ins_simulation.mdl
字号:
}
}
}
Block {
BlockType Outport
Name "f"
Position [325, 33, 355, 47]
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "white noise"
SrcPort 1
Points [45, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -25; -195, 0]
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [45, 0]
DstBlock "Sum3"
DstPort 2
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "f"
DstPort 1
}
Line {
SrcBlock "fb"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [270, 145, 300, 175]
Value "1/2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [455, 246, 460, 314]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [460, 396, 465, 464]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 6]
Position [80, 214, 85, 336]
BackgroundColor "black"
ShowName off
Outputs "6"
}
Block {
BlockType Demux
Name "Demux3"
Ports [1, 4]
Position [675, 116, 680, 154]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [75, 60, 165, 90]
Decimation "1"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [550, 120, 580, 150]
InitialCondition "[1;0;0;0]"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [3, 1]
Position [135, 279, 170, 331]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [175, 226, 180, 264]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [465, 116, 510, 149]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [370, 106, 415, 139]
Multiplication "Matrix(*)"
InputSameDT off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [260, 99, 320, 131]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [232, 435, 750, 777]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 143, 50, 157]
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [125, 205, 185, 235]
MATLABFcn "[u(3) u(2) -u(1) 0]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [125, 45, 185, 75]
MATLABFcn "[0 -u(1) -u(2) -u(3)]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [125, 95, 185, 125]
MATLABFcn "[u(1) 0 u(3) -u(2)]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn3"
Position [125, 150, 185, 180]
MATLABFcn "[u(2) -u(3) 0 u(1)]"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [365, 115, 395, 145]
Operator "transpose"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [4, 1]
Position [295, 101, 330, 154]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "4"
catMethod "Horizontal"
}
Block {
BlockType Outport
Name "Out1"
Position [425, 123, 455, 137]
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
Points [45, 0; 0, 45]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn2"
SrcPort 1
Points [35, 0; 0, 10]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "MATLAB Fcn3"
SrcPort 1
Points [45, 0; 0, -30]
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
Points [80, 0; 0, -70]
DstBlock "Matrix\nConcatenation"
DstPort 4
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -5; 45, 0]
DstBlock "MATLAB Fcn2"
DstPort 1
}
Branch {
Points [0, 5; 30, 0; 0, 10]
DstBlock "MATLAB Fcn3"
DstPort 1
}
Branch {
Points [0, 15; 20, 0; 0, 55]
DstBlock "MATLAB Fcn"
DstPort 1
}
Branch {
Points [0, -15; 30, 0; 0, -75]
DstBlock "MATLAB Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "gyro"
Ports [3, 1]
Position [295, 368, 370, 492]
TreatAsAtomicUnit off
System {
Name "gyro"
Location [0, 88, 1012, 738]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Attitude"
Position [30, 43, 60, 57]
}
Block {
BlockType Inport
Name "phi"
Position [35, 323, 65, 337]
Port "2"
}
Block {
BlockType Inport
Name "(omega)ep"
Position [35, 363, 65, 377]
Port "3"
}
Block {
BlockType SubSystem
Name "(omega)ie"
Ports [2, 1]
Position [150, 275, 190, 335]
TreatAsAtomicUnit off
System {
Name "(omega)ie"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [185, 33, 215, 47]
}
Block {
BlockType Inport
Name "phi"
Position [25, 48, 55, 62]
Port "2"
}
Block {
BlockType Constant
Name "(omega)ie"
Position [25, 83, 55, 107]
Value "7.292115e-5"
}
Block {
BlockType Reference
Name "(omega)ie(matrix)"
Ports [3, 1]
Position [240, 29, 295, 91]
SourceBlock "simulink/Math\nOperations/Matrix\nC"
"oncatenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [125, 47, 180, 73]
MATLABFcn "u(2)*cos(u(1))"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [125, 87, 180, 113]
MATLABFcn "u(2)*sin(u(1))"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [80, 56, 85, 94]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [320, 53, 350, 67]
}
Line {
SrcBlock "phi"
SrcPort 1
Points [5, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "(omega)ie"
SrcPort 1
Points [5, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -15]
DstBlock "MATLAB Fcn1"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "MATLAB Fcn2"
DstPort 1
}
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
DstBlock "(omega)ie(matrix)"
DstPort 2
}
Line {
SrcBlock "MATLAB Fcn2"
SrcPort 1
Points [20, 0; 0, -20]
DstBlock "(omega)ie(matrix)"
DstPort 3
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "(omega)ie(matrix)"
DstPort 1
}
Line {
SrcBlock "(omega)ie(matrix)"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "(psai,sita,gama)"
Ports [3, 1]
Position [140, 29, 195, 71]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType Constant
Name "Constant"
Position [40, 275, 70, 305]
Value "0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [100, 31, 105, 69]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Derivative
Name "Derivative"
Position [190, 105, 220, 135]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [355, 81, 395, 114]
Multiplication "Matrix(*)"
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [385, 216, 425, 249]
Multiplication "Matrix(*)"
InputSameDT off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [235, 31, 295, 69]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [420, 280, 918, 580]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [60, 113, 90, 127]
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [165, 49, 210, 81]
MATLABFcn "[-sin(u(3))*cos(u(2)),cos(u(3)),0]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [170, 105, 210, 135]
MATLABFcn "[sin(u(2)),0,1]"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [170, 155, 210, 185]
MATLABFcn "[cos(u(3))*cos(u(2)),sin(u(3)),0]"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -