📄 soccer.mdl
字号:
SrcPort 1 Points [80, 0] Branch { Points [0, 110] DstBlock "Ball Motion1" DstPort 1 } Branch { DstBlock "Mote Animation1" DstPort 1 } } Line { SrcBlock "yMux" SrcPort 1 Points [30, 0] Branch { Points [0, -110] DstBlock "Mote Animation1" DstPort 2 } Branch { DstBlock "Ball Motion1" DstPort 2 } } Line { SrcBlock "x1" SrcPort 1 DstBlock "xMux" DstPort 1 } Line { SrcBlock "y1" SrcPort 1 DstBlock "yMux" DstPort 1 } Line { SrcBlock "x2" SrcPort 1 DstBlock "xMux" DstPort 2 } Line { SrcBlock "y2" SrcPort 1 DstBlock "yMux" DstPort 2 } Line { SrcBlock "x3" SrcPort 1 DstBlock "xMux" DstPort 3 } Line { SrcBlock "y3" SrcPort 1 DstBlock "yMux" DstPort 3 } Line { SrcBlock "x4" SrcPort 1 DstBlock "xMux" DstPort 4 } Line { SrcBlock "y4" SrcPort 1 DstBlock "yMux" DstPort 4 } Line { SrcBlock "x5" SrcPort 1 DstBlock "xMux" DstPort 5 } Line { SrcBlock "y5" SrcPort 1 DstBlock "yMux" DstPort 5 } Line { SrcBlock "x6" SrcPort 1 DstBlock "xMux" DstPort 6 } Line { SrcBlock "y6" SrcPort 1 DstBlock "yMux" DstPort 6 } Line { SrcBlock "x7" SrcPort 1 DstBlock "xMux" DstPort 7 } Line { SrcBlock "y7" SrcPort 1 DstBlock "yMux" DstPort 7 } Line { SrcBlock "x8" SrcPort 1 DstBlock "xMux" DstPort 8 } Line { SrcBlock "y8" SrcPort 1 DstBlock "yMux" DstPort 8 } Line { SrcBlock "x9" SrcPort 1 DstBlock "xMux" DstPort 9 } Line { SrcBlock "y9" SrcPort 1 DstBlock "yMux" DstPort 9 } Line { SrcBlock "x10" SrcPort 1 DstBlock "xMux" DstPort 10 } Line { SrcBlock "y10" SrcPort 1 DstBlock "yMux" DstPort 10 } } } Block { BlockType Clock Name "Clock" Position [95, 20, 115, 40] DisplayTime off Decimation "10" } Block { BlockType Display Name "Display" Ports [1] Position [180, 15, 270, 45] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType SubSystem Name "Mote 1" Ports [] Position [15, 92, 115, 168] BackgroundColor "red" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "fgdfgMOTE" MaskPromptString "Node number" MaskStyleString "edit" MaskTunableValueString "off" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "nodeID=@1;" MaskInitialization "set_param(strcat(gcb,'/From_rcv'),'GotoTag',str""cat('rcv',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_x'),'GotoTag',strca""t('x',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_y'),'GotoTag',strcat('y""',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_snd'),'GotoTag',strcat('snd""',num2str(nodeID)));" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "1" System { Name "Mote 1" Location [82, 413, 536, 679] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Integrator Name "\n" Ports [1, 1] Position [210, 140, 240, 170] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "yPos(nodeID)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "\n \n" Ports [1, 1] Position [210, 185, 240, 215] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "xPos(nodeID)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [375, 16, 380, 54] BackgroundColor "black" ShowName off Outputs "2" BusSelectionMode off } Block { BlockType From Name "From_rcv" Position [100, 77, 140, 93] ShowName off CloseFcn "tagdialog Close" GotoTag "rcv1" } Block { BlockType Goto Name "Goto_snd" Position [330, 42, 365, 58] ShowName off GotoTag "snd1" TagVisibility "global" } Block { BlockType Goto Name "Goto_x" Position [150, 216, 175, 234] ShowName off GotoTag "x1" TagVisibility "global" } Block { BlockType Goto Name "Goto_y" Position [150, 171, 175, 189] ShowName off GotoTag "y1" TagVisibility "global" } Block { BlockType Ground Name "Ground" Position [130, 50, 150, 70] ShowName off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [115, 16, 120, 54] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Schedule" Ports [1] Position [360, 74, 385, 96] Floating off Location [83, 518, 897, 977] Open off NumInputPorts "1" TickLabels "on" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "3.5" YMin "1.8" YMax "3.7" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Terminator Name "Terminator" Position [325, 90, 345, 110] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [345, 120, 365, 140] ShowName off } Block { BlockType Reference Name "TrueTime Kernel" Ports [3, 5] Position [170, 22, 285, 98] DropShadow on SourceBlock "truetime/TrueTime Kernel" SourceType "" sfun "node_red_goalie_init" args "nodeID" battery off clockdrift "0" clockoffset "0" } Line { SrcBlock "TrueTime Kernel" SrcPort 3 Points [35, 0; 0, 25] DstBlock "Schedule" DstPort 1 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 2 } Line { SrcBlock "From_rcv" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 Points [20, 0] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 Points [0, 5] DstBlock "Demux" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 2 Points [25, 0] DstBlock "Goto_snd" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [10, 0; 0, 110] DstBlock "\n" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [35, 0; 0, 175] DstBlock "\n \n" DstPort 1 } Line { SrcBlock "\n" SrcPort 1 Points [-70, 0] Branch { Points [-70, 0; 0, -110] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Goto_y" DstPort 1 } } Line { SrcBlock "\n \n" SrcPort 1 Points [-70, 0] Branch { Points [-100, 0; 0, -175] DstBlock "Mux" DstPort 1 } Branch { DstBlock "Goto_x" DstPort 1 } } Line { SrcBlock "TrueTime Kernel" SrcPort 5 Points [10, 0; 0, 40] DstBlock "Terminator1" DstPort 1 } } } Block { BlockType SubSystem Name "Mote 10" Ports [] Position [140, 492, 240, 568] BackgroundColor "lightBlue" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "fgdfgMOTE" MaskPromptString "Node number" MaskStyleString "edit" MaskTunableValueString "off" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "nodeID=@1;" MaskInitialization "set_param(strcat(gcb,'/From_rcv'),'GotoTag',str""cat('rcv',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_x'),'GotoTag',strca""t('x',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_y'),'GotoTag',strcat('y""',num2str(nodeID)));\nset_param(strcat(gcb,'/Goto_snd'),'GotoTag',strcat('snd""',num2str(nodeID)));" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "10" System { Name "Mote 10" Location [563, 72, 1206, 504] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Integrator Name "\n" Ports [1, 1] Position [210, 140, 240, 170] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "yPos(nodeID)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "\n \n" Ports [1, 1] Position [210, 185, 240, 215] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "xPos(nodeID)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [375, 16, 380, 54] BackgroundColor "black" ShowName off Outputs "2" BusSelectionMode off } Block { BlockType From Name "From_rcv" Position [100, 77, 140, 93] ShowName off CloseFcn "tagdialog Close" GotoTag "rcv10" } Block { BlockType Goto Name "Goto_snd" Position [330, 42, 365, 58] ShowName off GotoTag "snd10" TagVisibility "global" } Block { BlockType Goto Name "Goto_x" Position [150, 216, 175, 234] ShowName off GotoTag "x10" TagVisibility "global" } Block { BlockType Goto Name "Goto_y" Position [150, 171, 175, 189] ShowName off GotoTag "y10" TagVisibility "global" } Block { BlockType Ground Name "Ground" Position [130, 50, 150, 70] ShowName off } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [115, 16, 120, 54] ShowName off Inputs "4" DisplayOption "bar" } Block { BlockType Scope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -