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

📄 qlib.mdl

📁 四元数表示的
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	AutoZoom		on	Block {	  BlockType		  Inport	  Name			  "q"	  Position		  [20, 38, 50, 52]	  BackgroundColor	  "cyan"	  Port			  "1"	  PortWidth		  "4"	  SampleTime		  "-1"	  DataType		  "auto"	  SignalType		  "auto"	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "V"	  Position		  [20, 88, 50, 102]	  BackgroundColor	  "cyan"	  Port			  "2"	  PortWidth		  "3"	  SampleTime		  "-1"	  DataType		  "auto"	  SignalType		  "auto"	  Interpolate		  on	}	Block {	  BlockType		  Constant	  Name			  "Constant"	  Position		  [60, 104, 80, 126]	  Value			  "0"	}	Block {	  BlockType		  Demux	  Name			  "Demux"	  Ports			  [1, 2, 0, 0, 0]	  Position		  [365, 61, 370, 99]	  BackgroundColor	  "black"	  ShowName		  off	  Outputs		  "[3 1]"	}	Block {	  BlockType		  Mux	  Name			  "Mux"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [110, 86, 115, 124]	  ForegroundColor	  "blue"	  ShowName		  off	  Inputs		  "2"	  DisplayOption		  "bar"	}	Block {	  BlockType		  Reference	  Name			  "Quaternion\nConjugate"	  Ports			  [1, 1, 0, 0, 0]	  Position		  [155, 34, 175, 56]	  NamePlacement		  "alternate"	  SourceBlock		  "qlib/Quaternion\nConjugate"	  SourceType		  "Quaternion Conjugate"	}	Block {	  BlockType		  Reference	  Name			  "Quaternion\nMultiply 1"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [215, 37, 255, 73]	  NamePlacement		  "alternate"	  SourceBlock		  "qlib/Quaternion\nMultiply"	  SourceType		  "Quaternion Multiply"	}	Block {	  BlockType		  Reference	  Name			  "Quaternion\nMultiply 2"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [300, 62, 340, 98]	  NamePlacement		  "alternate"	  SourceBlock		  "qlib/Quaternion\nMultiply"	  SourceType		  "Quaternion Multiply"	}	Block {	  BlockType		  Terminator	  Name			  "Terminator"	  Position		  [395, 80, 415, 100]	}	Block {	  BlockType		  Outport	  Name			  "q*Vq"	  Position		  [425, 63, 455, 77]	  BackgroundColor	  "yellow"	  NamePlacement		  "alternate"	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "0"	}	Line {	  Labels		  [1, 0]	  SrcBlock		  "V"	  SrcPort		  1	  DstBlock		  "Mux"	  DstPort		  1	}	Line {	  SrcBlock		  "Constant"	  SrcPort		  1	  DstBlock		  "Mux"	  DstPort		  2	}	Line {	  SrcBlock		  "q"	  SrcPort		  1	  Points		  [75, 0]	  Branch {	    Points		    [0, 45]	    DstBlock		    "Quaternion\nMultiply 2"	    DstPort		    2	  }	  Branch {	    DstBlock		    "Quaternion\nConjugate"	    DstPort		    1	  }	}	Line {	  SrcBlock		  "Quaternion\nMultiply 2"	  SrcPort		  1	  DstBlock		  "Demux"	  DstPort		  1	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  2	  DstBlock		  "Terminator"	  DstPort		  1	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  1	  DstBlock		  "q*Vq"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux"	  SrcPort		  1	  Points		  [65, 0; 0, -40]	  DstBlock		  "Quaternion\nMultiply 1"	  DstPort		  2	}	Line {	  SrcBlock		  "Quaternion\nConjugate"	  SrcPort		  1	  DstBlock		  "Quaternion\nMultiply 1"	  DstPort		  1	}	Line {	  SrcBlock		  "Quaternion\nMultiply 1"	  SrcPort		  1	  Points		  [15, 0; 0, 15]	  DstBlock		  "Quaternion\nMultiply 2"	  DstPort		  1	}      }    }    Block {      BlockType		      SubSystem      Name		      "Quaternion\nto DCM"      Ports		      [1, 1, 0, 0, 0]      Position		      [130, 238, 170, 272]      ShowPortLabels	      on      MaskType		      "Quaternion to DCM"      MaskDescription	      "Converts a quaternion to the direction cosine m""atrix (DCM) that would perform the equivalent vector transformation, i.e., Rv"" = q*vq, where R is the DCM, v is a vector, and q is the quaternion.\n\nNote ""that for purposes of quaternion-vector multiplication, a vector is treated as"" a quaterion with a scalar element of zero."      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      System {	Name			"Quaternion\nto DCM"	Location		[7, 249, 647, 963]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	AutoZoom		on	Block {	  BlockType		  Inport	  Name			  "q"	  Position		  [35, 178, 60, 192]	  BackgroundColor	  "cyan"	  Port			  "1"	  PortWidth		  "4"	  SampleTime		  "-1"	  DataType		  "auto"	  SignalType		  "auto"	  Interpolate		  on	}	Block {	  BlockType		  Demux	  Name			  "Demux"	  Ports			  [1, 4, 0, 0, 0]	  Position		  [90, 85, 95, 285]	  BackgroundColor	  "black"	  ShowName		  off	  Outputs		  "4"	  Port {	    PortNumber		    1	    Name		    "q1"	    TestPoint		    off	    RTWStorageClass	    "Auto"	  }	  Port {	    PortNumber		    2	    Name		    "q2"	    TestPoint		    off	    RTWStorageClass	    "Auto"	  }	  Port {	    PortNumber		    3	    Name		    "q3"	    TestPoint		    off	    RTWStorageClass	    "Auto"	  }	  Port {	    PortNumber		    4	    Name		    "q4"	    TestPoint		    off	    RTWStorageClass	    "Auto"	  }	}	Block {	  BlockType		  From	  Name			  "From"	  Position		  [70, 411, 105, 429]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1"	}	Block {	  BlockType		  From	  Name			  "From1"	  Position		  [70, 431, 105, 449]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2"	}	Block {	  BlockType		  From	  Name			  "From10"	  Position		  [400, 411, 435, 429]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q3"	}	Block {	  BlockType		  From	  Name			  "From11"	  Position		  [400, 431, 435, 449]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q4"	}	Block {	  BlockType		  From	  Name			  "From12"	  Position		  [335, 66, 380, 84]	  ForegroundColor	  "blue"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q2"	}	Block {	  BlockType		  From	  Name			  "From13"	  Position		  [335, 86, 380, 104]	  ForegroundColor	  "gray"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q3q4"	}	Block {	  BlockType		  From	  Name			  "From14"	  Position		  [335, 106, 380, 124]	  ForegroundColor	  "blue"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q3"	}	Block {	  BlockType		  From	  Name			  "From15"	  Position		  [335, 126, 380, 144]	  ForegroundColor	  "red"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2q4"	}	Block {	  BlockType		  From	  Name			  "From16"	  Position		  [335, 146, 380, 164]	  ForegroundColor	  "blue"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q2"	}	Block {	  BlockType		  From	  Name			  "From17"	  Position		  [335, 166, 380, 184]	  ForegroundColor	  "gray"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q3q4"	}	Block {	  BlockType		  From	  Name			  "From18"	  Position		  [335, 226, 380, 244]	  ForegroundColor	  "red"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2q3"	}	Block {	  BlockType		  From	  Name			  "From19"	  Position		  [335, 246, 380, 264]	  ForegroundColor	  "blue"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q4"	}	Block {	  BlockType		  From	  Name			  "From2"	  Position		  [70, 461, 105, 479]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1"	}	Block {	  BlockType		  From	  Name			  "From20"	  Position		  [335, 266, 380, 284]	  ForegroundColor	  "blue"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q3"	}	Block {	  BlockType		  From	  Name			  "From21"	  Position		  [335, 286, 380, 304]	  ForegroundColor	  "red"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2q4"	}	Block {	  BlockType		  From	  Name			  "From22"	  Position		  [335, 306, 380, 324]	  ForegroundColor	  "red"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2q3"	}	Block {	  BlockType		  From	  Name			  "From23"	  Position		  [335, 326, 380, 344]	  ForegroundColor	  "gray"	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1q4"	}	Block {	  BlockType		  From	  Name			  "From3"	  Position		  [70, 481, 105, 499]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q3"	}	Block {	  BlockType		  From	  Name			  "From4"	  Position		  [70, 506, 105, 524]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q1"	}	Block {	  BlockType		  From	  Name			  "From5"	  Position		  [70, 526, 105, 544]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q4"	}	Block {	  BlockType		  From	  Name			  "From6"	  Position		  [240, 411, 275, 429]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2"	}	Block {	  BlockType		  From	  Name			  "From7"	  Position		  [240, 431, 275, 449]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q3"	}	Block {	  BlockType		  From	  Name			  "From8"	  Position		  [240, 461, 275, 479]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q2"	}	Block {	  BlockType		  From	  Name			  "From9"	  Position		  [240, 481, 275, 499]	  ShowName		  off	  CloseFcn		  "tagdialog Close"	  GotoTag		  "q4"	}	Block {	  BlockType		  Gain	  Name			  "Gain"	  Position		  [445, 74, 470, 96]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Gain	  Name			  "Gain1"	  Position		  [445, 114, 470, 136]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Gain	  Name			  "Gain2"	  Position		  [445, 154, 470, 176]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Gain	  Name			  "Gain3"	  Position		  [445, 234, 470, 256]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Gain	  Name			  "Gain4"	  Position		  [445, 274, 470, 296]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Gain	  Name			  "Gain5"	  Position		  [445, 314, 470, 336]	  ShowName		  off	  FontName		  "helvetica"	  FontSize		  8	  Gain			  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Goto	  Name			  "Goto"	  Position		  [145, 126, 180, 144]	  ShowName		  off	  GotoTag		  "q1"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto1"	  Position		  [145, 176, 180, 194]	  ShowName		  off	  GotoTag		  "q2"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto10"	  Position		  [170, 516, 215, 534]	  ForegroundColor	  "blue"	  ShowName		  off	  GotoTag		  "q1q4"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto11"	  Position		  [340, 421, 385, 439]	  ForegroundColor	  "red"	  ShowName		  off	  GotoTag		  "q2q3"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto12"	  Position		  [340, 471, 385, 489]	  ForegroundColor	  "red"	  ShowName		  off	  GotoTag		  "q2q4"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto13"	  Position		  [500, 421, 545, 439]	  ForegroundColor	  "gray"	  ShowName		  off	  GotoTag		  "q3q4"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto2"	  Position		  [145, 226, 180, 244]	  ShowName		  off	  GotoTag		  "q3"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto3"	  Position		  [145, 276, 180, 294]	  ShowName		  off	  GotoTag		  "q4"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto8"	  Position		  [170, 421, 215, 439]	  ForegroundColor	  "blue"	  ShowName		  off	  GotoTag		  "q1q2"	  TagVisibility		  "local"	}	Block {	  BlockType		  Goto	  Name			  "Goto9"	  Position		  [170, 471, 215, 489]	  ForegroundColor	  "blue"	  ShowName		  off	  GotoTag		  "q1q3"	  TagVisibility		  "local"	}	Block {	  BlockType		  Mux	  Name			  "Mux"	  Ports			  [9, 1, 0, 0, 0]	  Position		  [500, 25, 505, 385]	  BackgroundColor	  "black"	  NamePlacement		  "alternate"	  ShowName		  off	  Inputs		  "9"	  DisplayOption		  "none"	}	Block {	  BlockType		  Product	  Name			  "Product"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [165, 101, 190, 119]	  ForegroundColor	  "blue"	  ShowName		  off	  Inputs		  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Product	  Name			  "Product1"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [165, 151, 190, 169]	  ForegroundColor	  "red"	  ShowName		  off	  Inputs		  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Product	  Name			  "Product2"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [165, 201, 190, 219]	  ForegroundColor	  "gray"	  ShowName		  off	  Inputs		  "2"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType

⌨️ 快捷键说明

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