⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helicop1.mdl

📁 《嵌入式控制系统及其CC++实现-面向使用Matlab的软件开发者》源码
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	  ShowName		  off
	  OutputSignals		  "Body Pos,Body Vel,Speed,VR Data,Euler RPY"
	  Port {
	    PortNumber		    1
	    Name		    "<Body Pos>"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    2
	    Name		    "<Body Vel>"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    3
	    Name		    "<Speed>"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    4
	    Name		    "<VR Data>"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  Port {
	    PortNumber		    5
	    Name		    "<Euler RPY>"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Display Subsystem"
	  Ports			  [5]
	  Position		  [265, 45, 360, 345]
	  BackgroundColor	  "yellow"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Display Subsystem"
	    Location		    [239, 91, 936, 660]
	    Open		    off
	    ModelBrowserVisibility  on
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Body Pos"
	      Position		      [25, 47, 55, 63]
	      BackgroundColor	      "yellow"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Body Vel"
	      Position		      [25, 328, 55, 342]
	      BackgroundColor	      "yellow"
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Speed"
	      Position		      [25, 183, 55, 197]
	      BackgroundColor	      "yellow"
	      Port		      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "VR Data"
	      Position		      [25, 383, 55, 397]
	      BackgroundColor	      "yellow"
	      Port		      "4"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Euler RPY"
	      Position		      [25, 213, 55, 227]
	      BackgroundColor	      "yellow"
	      Port		      "5"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      Ports		      [1, 3]
	      Position		      [220, 29, 225, 81]
	      BackgroundColor	      "yellow"
	      ShowName		      off
	      Outputs		      "3"
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Euler"
	      Ports		      [1]
	      Position		      [105, 264, 135, 296]
	      BackgroundColor	      "yellow"
	      Location		      [708, 136, 1019, 368]
	      Open		      off
	      NumInputPorts	      "1"
	      ZoomMode		      "yonly"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      List {
		ListType		SelectedSignals
		axes1			""
	      }
	      TimeRange		      "200"
	      YMin		      "-10"
	      YMax		      "10"
	      SaveName		      "ScopeData1"
	      DataFormat	      "StructureWithTime"
	      LimitDataPoints	      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [165, 40, 200, 70]
	      BackgroundColor	      "yellow"
	      ShowName		      off
	      Gain		      "-1"
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      "Hover Yaw1"
	      Position		      [260, 60, 280, 80]
	      BackgroundColor	      "yellow"
	      ShowName		      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Instrument Data"
	      Ports		      [3]
	      Position		      [105, 142, 165, 238]
	      BackgroundColor	      "yellow"
	      TreatAsAtomicUnit	      off
	      System {
		Name			"Instrument Data"
		Location		[241, 131, 949, 668]
		Open			off
		ModelBrowserVisibility	on
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Body Pos"
		  Position		  [20, 68, 50, 82]
		  BackgroundColor	  "yellow"
		}
		Block {
		  BlockType		  Inport
		  Name			  "Speed"
		  Position		  [20, 168, 50, 182]
		  BackgroundColor	  "yellow"
		  Port			  "2"
		}
		Block {
		  BlockType		  Inport
		  Name			  "Euler"
		  Position		  [20, 303, 50, 317]
		  BackgroundColor	  "yellow"
		  Port			  "3"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Altimeter"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [180, 91, 240, 129]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "Value"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Altitude (m)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Clock
		  Name			  "Clock"
		  Position		  [25, 460, 45, 480]
		  BackgroundColor	  "yellow"
		  Decimation		  "10"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [150, 381, 185, 399]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  Value			  "0"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant1"
		  Position		  [150, 411, 185, 429]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  Value			  "360"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux1"
		  Ports			  [1, 3]
		  Position		  [85, 20, 90, 130]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  Outputs		  "3"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux2"
		  Ports			  [1, 3]
		  Position		  [85, 228, 90, 392]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  Outputs		  "3"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Flight Time"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [130, 451, 190, 489]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "Value"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Flight Time (sec)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [120, 95, 150, 125]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  Gain			  "-1"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Heading"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [315, 346, 375, 384]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "NeedleValue"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Heading (deg true)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Pitch Angle"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [130, 291, 190, 329]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "NeedleValue"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Pitch Angle (deg)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Roll Angle"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [130, 236, 190, 274]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "NeedleValue"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Roll Angle (deg)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Speedometer"
		  Tag			  "010"
		  Ports			  [1]
		  Position		  [130, 156, 190, 194]
		  BackgroundColor	  "yellow"
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "Compass"
		  connect		  "input"
		  input			  "Value"
		  init_fcn		  "Helicopter/Displays/Display Subsyst"
"em/Instruments/Speed (m//sec)"
		  inblock		  off
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [265, 355, 285, 375]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|++"
		  InputSameDT		  off
		  OutDataTypeMode	  "Inherit via internal rule"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch"
		  Position		  [215, 380, 245, 430]
		  BackgroundColor	  "yellow"
		  InputSameDT		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator1"
		  Position		  [125, 65, 145, 85]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator2"
		  Position		  [125, 30, 145, 50]
		  BackgroundColor	  "yellow"
		  ShowName		  off
		}
		Line {
		  SrcBlock		  "Euler"
		  SrcPort		  1
		  DstBlock		  "Demux2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  3
		  Points		  [0, 0; 30, 0]
		  Branch {
		    Points		    [0, 40]
		    DstBlock		    "Switch"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "Sum"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  1
		  DstBlock		  "Roll Angle"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  2
		  DstBlock		  "Pitch Angle"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Clock"
		  SrcPort		  1
		  DstBlock		  "Flight Time"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  1
		  DstBlock		  "Terminator2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  2
		  DstBlock		  "Terminator1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Body Pos"
		  SrcPort		  1
		  DstBlock		  "Demux1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  3
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "Altimeter"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Switch"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant1"
		  SrcPort		  1
		  DstBlock		  "Switch"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Switch"
		  SrcPort		  1
		  Points		  [25, 0]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Speed"
		  SrcPort		  1
		  DstBlock		  "Speedometer"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  DstBlock		  "Heading"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Instruments"
	      Ports		      []
	      Position		      [310, 137, 370, 233]
	      BackgroundColor	      "yellow"
	      TreatAsAtomicUnit	      off
	      System {
		Name			"Instruments"
		Location		[239, 91, 936, 660]
		Open			off
		ModelBrowserVisibility	on
		ModelBrowserWidth	207
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"96"
		Block {
		  BlockType		  Reference
		  Name			  "Altitude (m)"
		  Ports			  []
		  Position		  [105, 20, 260, 90]
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"
		  progid		  "mwnumled.numledctrl.1"
		  connect		  "neither"
		  input			  "Value"
		  init			  "hActx.configuration='Numeric LED\\P"
"lusMinus XX.XXX';hActx.Digits=6;hActx.Decimals=3;hActx.FixedDecimal=1;hActx.v"
"alue=-317.489;hActx.SegmentWidth=3;"
		  inblock		  on
		  border		  on
		  dialOut		  "0"
		  updateParam		  "0"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Flight Time (sec)"
		  Ports			  []
		  Position		  [515, 20, 680, 90]
		  SourceBlock		  "dnglibv1/ActiveX\nControl"
		  SourceType		  "ActiveX Block"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -