📄 c_rock.mdl
字号:
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType TransferFcn
Name "Accelerometer_y"
Position [620, 367, 680, 403]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWa*numWa"
Denominator "denWa"
}
Block {
BlockType TransferFcn
Name "Accelerometer_z"
Position [620, 487, 680, 523]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWa*numWa"
Denominator "denWa"
}
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [3, 1]
Position [520, 196, 525, 234]
ShowName off
DialogController "Simulink.DDGSource_Bus"
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Clock
Name "Clock"
Position [775, 550, 795, 570]
BackgroundColor "green"
Decimation "1"
}
Block {
BlockType StateSpace
Name "Controller_y"
Position [185, 128, 245, 162]
BackgroundColor "red"
DropShadow on
A "Ak"
B "Bk"
C "Ck"
D "Dk"
}
Block {
BlockType StateSpace
Name "Controller_z"
Position [260, 263, 320, 297]
BackgroundColor "red"
DropShadow on
A "Ak"
B "Bk"
C "Ck"
D "Dk"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 6]
Position [685, 143, 690, 282]
BackgroundColor "black"
ShowName off
Outputs "6"
}
Block {
BlockType TransferFcn
Name "Fins_y"
Position [270, 127, 330, 163]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWd*numWd"
Denominator "denWd"
}
Block {
BlockType TransferFcn
Name "Fins_z"
Position [350, 262, 410, 298]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWd*numWd"
Denominator "denWd"
}
Block {
BlockType Gain
Name "Gain1"
Position [80, 65, 110, 95]
BackgroundColor "lightBlue"
DropShadow on
Gain "Ka"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [80, 215, 110, 245]
BackgroundColor "lightBlue"
DropShadow on
NamePlacement "alternate"
Gain "Ka"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [430, 460, 460, 490]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain4"
Position [430, 580, 460, 610]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [230, 261, 235, 299]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [160, 126, 165, 164]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Noise"
Ports [0, 4]
Position [605, 289, 690, 346]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Noise"
Location [151, 197, 649, 675]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Noise1"
Ports [0, 1]
Position [120, 90, 150, 120]
BackgroundColor "yellow"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "10^(-2)"
Ts "0.05"
seed "[23341]"
VectorParams1D off
}
Block {
BlockType Reference
Name "Noise2"
Ports [0, 1]
Position [120, 175, 150, 205]
BackgroundColor "yellow"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "10^(-2)"
Ts "0.05"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Reference
Name "Noise3"
Ports [0, 1]
Position [120, 260, 150, 290]
BackgroundColor "yellow"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "10^(-2)"
Ts "0.05"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Reference
Name "Noise4"
Ports [0, 1]
Position [120, 350, 150, 380]
BackgroundColor "yellow"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "10^(-2)"
Ts "0.05"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType TransferFcn
Name "Shaping Filter-Accelerometer_y"
Position [210, 86, 320, 124]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWan*numWan"
Denominator "denWan"
}
Block {
BlockType TransferFcn
Name "Shaping Filter-Accelerometer_z"
Position [210, 257, 320, 293]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWan*numWan"
Denominator "denWan"
}
Block {
BlockType TransferFcn
Name "Shaping Filter-Rate giro y"
Position [210, 346, 320, 384]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWgn*numWgn"
Denominator "denWgn"
}
Block {
BlockType TransferFcn
Name "Shaping Filter-Rate giro_z"
Position [210, 172, 320, 208]
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWgn*numWgn"
Denominator "denWgn"
}
Block {
BlockType Outport
Name "Out1"
Position [375, 98, 405, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [375, 183, 405, 197]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out3"
Position [375, 268, 405, 282]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out4"
Position [375, 358, 405, 372]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Noise1"
SrcPort 1
DstBlock "Shaping Filter-Accelerometer_y"
DstPort 1
}
Line {
SrcBlock "Shaping Filter-Accelerometer_y"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Noise2"
SrcPort 1
DstBlock "Shaping Filter-Rate giro_z"
DstPort 1
}
Line {
SrcBlock "Shaping Filter-Rate giro_z"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Noise3"
SrcPort 1
DstBlock "Shaping Filter-Accelerometer_z"
DstPort 1
}
Line {
SrcBlock "Shaping Filter-Accelerometer_z"
SrcPort 1
DstBlock "Out3"
DstPort 1
}
Line {
SrcBlock "Noise4"
SrcPort 1
DstBlock "Shaping Filter-Rate giro y"
DstPort 1
}
Line {
SrcBlock "Shaping Filter-Rate giro y"
SrcPort 1
DstBlock "Out4"
DstPort 1
}
Annotation {
Name "Measurement noises"
Position [247, 18]
FontSize 12
FontWeight "bold"
}
}
}
Block {
BlockType ToWorkspace
Name "Output4"
Position [890, 336, 930, 364]
BackgroundColor "orange"
VariableName "n_y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "Output5"
Position [890, 436, 930, 464]
BackgroundColor "orange"
VariableName "n_z"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "Outputs6_13"
Position [875, 489, 930, 521]
BackgroundColor "orange"
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType TransferFcn
Name "Rate giro_y"
Position [620, 547, 680, 583]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWg*numWg"
Denominator "denWg"
}
Block {
BlockType TransferFcn
Name "Rate giro_z"
Position [620, 427, 680, 463]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWg*numWg"
Denominator "denWg"
}
Block {
BlockType "S-Function"
Name "Rocket"
Ports [1, 1]
Position [555, 191, 650, 239]
BackgroundColor "green"
DropShadow on
FunctionName "s_rock"
}
Block {
BlockType TransferFcn
Name "Roll compensator"
Position [590, 77, 650, 113]
Orientation "left"
BackgroundColor "red"
DropShadow on
Numerator "-gainKr*numKr"
Denominator "denKr"
}
Block {
BlockType TransferFcn
Name "Roll fins"
Position [515, 77, 575, 113]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWr*numWr"
Denominator "denWr"
}
Block {
BlockType TransferFcn
Name "Roll giro"
Position [665, 77, 725, 113]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
Numerator "gainWi*numWi"
Denominator "denWi"
}
Block {
BlockType Saturate
Name "Saturation1"
Position [365, 130, 395, 160]
BackgroundColor "green"
DropShadow on
UpperLimit "0.6"
LowerLimit "-0.6"
}
Block {
BlockType Saturate
Name "Saturation2"
Position [435, 265, 465, 295]
BackgroundColor "green"
DropShadow on
UpperLimit "0.6"
LowerLimit "-0.6"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [115, 125, 135, 145]
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [170, 260, 190, 280]
BackgroundColor "cyan"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [580, 555, 600, 575]
Orientation "down"
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [495, 375, 515, 395]
Orientation "down"
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [525, 435, 545, 455]
Orientation "down"
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [550, 495, 570, 515]
Orientation "down"
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType ToWorkspace
Name "Time"
Position [875, 545, 930, 575]
BackgroundColor "orange"
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Scope
Name "delta_y"
Ports [1]
Position [365, 73, 395, 107]
Orientation "left"
BackgroundColor "magenta"
Location [104, 234, 633, 594]
Open off
NumInputPorts "1"
List {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -