-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
19 lines (19 loc) · 16 KB
/
main.blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</variable><variable id="3jn]ytSZO#nft~U92{,=">Directions</variable><variable id="g(?s[%;X{=75^K#!$#/;">value</variable><variable id="o0)ftaSr;lh4*E=;+M8g">value2</variable><variable id="$u{)YwL8.FtK-6]@!8LD">list</variable></variables><block type="function_definition" id="yFhZvd%#nTe%[+@E9RbG" x="2267" y="-369"><mutation name="showDirection" functionid="%(JbMIFJMS2nasx;?[yC"><arg name="Direction2" id="qz01ch8i485utplvdubl" type="string"></arg></mutation><field name="function_name">showDirection</field><value name="qz01ch8i485utplvdubl"><block type="argument_reporter_string" id="5N,4*Mhbm7p,s?g-z6o*"><mutation duplicateondrag="true"></mutation><field name="VALUE">Direction2</field></block></value><statement name="STACK"><block type="controls_if" id="qT8JT@Gctsrf,BJ7})rm"><mutation elseif="2" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="H8G-*r`4_XDX-w4!g}m;"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$)6h1jkU)iOwMl`a73S."><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="Bokyg^m{pt|[6l9dP:En"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="OaKA-rsM|/v)WF.hs@Cn"><field name="VALUE">Direction2</field></block></value><value name="B"><shadow type="math_number" id="N6l/})^}?k9-mDr42/3)"><field name="NUM">0</field></shadow><block type="text" id="D(}md30SA43f(;#7e75}"><field name="TEXT">L</field></block></value></block></value><statement name="DO0"><block type="device_show_leds" id="|=}F)X|HXMMDAyeAt7}Q"><field name="LEDS">`
. . # . .
. # . . .
# # # # #
. # . . #
. . # . #
`</field></block></statement><value name="IF1"><shadow type="logic_boolean" id="asJ3sGFgD93n6`Q+YzxI"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="u^$C3b:b|=DyC}@3+36["><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="t;s|}vIqgSI=IVTkPEmy"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="Ma7TxmNcVk9{p]Z#gN78"><field name="VALUE">Direction2</field></block></value><value name="B"><shadow type="math_number" id=".mx%a!oV%+HEfj8{f@[k"><field name="NUM">0</field></shadow><block type="text" id="qp*9QYKuV4LkP1(ft3+y"><field name="TEXT">R</field></block></value></block></value><statement name="DO1"><block type="device_show_leds" id="V0LKY]07^}6PJ=[T[+1q"><field name="LEDS">`
. . # . .
. . . # .
# # # # #
# . . # .
# . # . .
`</field></block></statement><value name="IF2"><shadow type="logic_boolean" id="VWd!aA1A56akcvC(0WSL"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="SY@j9DVY0$gg2IeVBMpu"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="c[H[oIodP?4j1:FL2|8R"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="H@9axj*:N!}cm={%@y*K"><field name="VALUE">Direction2</field></block></value><value name="B"><shadow type="math_number" id="@UbDg`9XmQ@#s.xMJn77"><field name="NUM">0</field></shadow><block type="text" id="Jq)G_(?b++]JgTpS30+~"><field name="TEXT">F</field></block></value></block></value><statement name="DO2"><block type="device_show_leds" id="~KlSKKhtXlNE8T5PPC~-"><field name="LEDS">`
. . # . .
. # # # .
# . # . #
. . # . .
. . # . .
`</field></block></statement><statement name="ELSE"><block type="basic_show_icon" id="sVVl~iw-=_Ln+M;^rw$r"><field name="i">IconNames.No</field></block></statement><next><block type="device_pause" id="7*6c0X!IkS4,/[Y`qL7N"><value name="pause"><shadow type="timePicker" id="^{auG[tM{8w*pmvwwHB7"><field name="ms">1000</field></shadow></value><next><block type="device_clear_display" id="yFLSIXjw|}QtM=M}8WX0"><next><block type="device_pause" id="0cP_Ls95@VNIgR_-]Qa~"><value name="pause"><shadow type="timePicker" id="yJ+$rV(Clo3$fNcH]fwB"><field name="ms">200</field></shadow></value><next><block type="device_ring" id="{)[Ew$J*{52r0m;)f[k#"><value name="note"><shadow type="device_note" id="O*{NnDh~GcEe#Ido?.Ow"><field name="name">988</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="AiB8`kn5=|n`^^Rf5j}b" x="1866" y="-100"></block><block type="pxt-on-start" id="?4=n~z}B@z/45bJ^iDuV" x="35" y="54"><statement name="HANDLER"><block type="huskylens_initI2c" id="Oyo)3VPWrKLj2[O5W6hU"><next><block type="huskylens_initMode" id="39ADWL#c?w$Tegn2NQ/`"><field name="mode">protocolAlgorithm.OBJECTCLASSIFICATION</field><next><block type="variables_set" id="[email protected]+zml])#*m5"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field><value name="VALUE"><shadow type="math_number" id="DlfStNCBdkt`jC(={!Kr"><field name="NUM">0</field></shadow><block type="lists_create_with" id="UE_Z+uo*Dc7`B=Rd.$h["><mutation items="0" horizontalafter="3"></mutation></block></value><next><block type="radio_set_group" id="N}nOX-/)D*h8B#bSq[9;"><value name="ID"><shadow type="math_number_minmax" id="kOITQN0Q9ig9^KeC/%*~"><mutation min="0" max="255" precision="0"></mutation><field name="SLIDER">33</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="!z;Qf^=t.7_xKWIw);{]" x="666" y="96"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="`s_g^bSY}%ZXb*n%^-Mo"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field><value name="VALUE"><shadow type="math_number" id="2phY5EaAvGs#~qZ`]3iV"><field name="NUM">0</field></shadow><block type="lists_create_with" id="$+..A9clXnMr+[v*QJ1;"><mutation items="0" horizontalafter="3"></mutation></block></value><next><block type="basic_show_icon" id="I!RUj.q,6O4Gta(m6=G="><field name="i">IconNames.No</field><next><block type="device_pause" id="CD-:qns(i|*)DPiDe~9e"><value name="pause"><shadow type="timePicker" id="Zfpc%ai6NpS|Y_YlkWcH"><field name="ms">500</field></shadow></value></block></next></block></next></block></statement></block><block type="device_button_event" id="ew6gqc#%9sCVRxzz#waY" x="1160" y="192"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="huskylens_request" id="[7^B59%#4pc-,gxvhwK5"><next><block type="controls_if" id="2t10{~nS7Zib-,(ZA4z?"><mutation elseif="3" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="l:iF3.HA-R,#^#9v4J6r"><field name="BOOL">TRUE</field></shadow><block type="huskylens_isAppear" id="u_T[Xq9p6LTSQ$.:+AK!"><field name="Ht">HUSKYLENSResultType_t.HUSKYLENSResultBlock</field><value name="id"><shadow type="math_number" id="[L1x*COkE)W/^F*/pbVj"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="c(M`1AR.HQ2;6X5qs#_W"><mutation name="showDirection" functionid="%(JbMIFJMS2nasx;?[yC"><arg name="Direction2" id="qz01ch8i485utplvdubl" type="string"></arg></mutation><value name="qz01ch8i485utplvdubl"><shadow type="text" id="eu3M-o_B8LL^.O`NgR0x"><field name="TEXT">L</field></shadow></value><next><block type="array_push" id="MA^6_w5H#j0EL@0028np"><value name="list"><block type="variables_get" id="/0TWnjuCmgyc)zYf5kty"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field></block></value><value name="value"><shadow type="text" id="#K-Gr?2Ludc._ev:0=U9"><field name="TEXT">L</field></shadow></value></block></next></block></statement><value name="IF1"><shadow type="logic_boolean" id="N-j$GjuB2Oi@LE=nP83K"><field name="BOOL">TRUE</field></shadow><block type="huskylens_isAppear" id="C+g+|KRtT)^CHsQ=-Ro}"><field name="Ht">HUSKYLENSResultType_t.HUSKYLENSResultBlock</field><value name="id"><shadow type="math_number" id=":!tn)nq$`f-JMa4p@!={"><field name="NUM">2</field></shadow></value></block></value><statement name="DO1"><block type="function_call" id="V[TL,(do{h]ec;CWRgCh"><mutation name="showDirection" functionid="%(JbMIFJMS2nasx;?[yC"><arg name="Direction2" id="qz01ch8i485utplvdubl" type="string"></arg></mutation><value name="qz01ch8i485utplvdubl"><shadow type="text" id="z76$/@bUYZb2et^~nw,["><field name="TEXT">R</field></shadow></value><next><block type="array_push" id="KMggRgc_=djsIFQB{7WX"><value name="list"><block type="variables_get" id="Q=O54SGa~AUF:cC2@wbJ"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field></block></value><value name="value"><shadow type="text" id="UH[32Qkt3e]V+Xax~+]#"><field name="TEXT">R</field></shadow></value></block></next></block></statement><value name="IF2"><shadow type="logic_boolean" id="W5%ckHUj#lD7Xpu0[UN?"><field name="BOOL">TRUE</field></shadow><block type="huskylens_isAppear" id="YuC/I9T#To5nD8oL?~+k"><field name="Ht">HUSKYLENSResultType_t.HUSKYLENSResultBlock</field><value name="id"><shadow type="math_number" id="-fMu^x8:b$%@`|S2sLuF"><field name="NUM">3</field></shadow></value></block></value><statement name="DO2"><block type="function_call" id="_s.2j~Qs^Dlx))bgkBxS"><mutation name="showDirection" functionid="%(JbMIFJMS2nasx;?[yC"><arg name="Direction2" id="qz01ch8i485utplvdubl" type="string"></arg></mutation><value name="qz01ch8i485utplvdubl"><shadow type="text" id="9@ORQ#$JwnV=pof8Irua"><field name="TEXT">F</field></shadow></value><next><block type="array_push" id=":qO.mA]5KMXG^UZUP=??"><value name="list"><block type="variables_get" id="TdKK,zj@^nMVM58h$PLa"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field></block></value><value name="value"><shadow type="text" id="_fy-uKbXCJo;328..I7n"><field name="TEXT">F</field></shadow></value></block></next></block></statement><value name="IF3"><shadow type="logic_boolean" id="duvD2}w8)%jp**v^LvD6"><field name="BOOL">TRUE</field></shadow><block type="huskylens_isAppear" id="s:)--$J#Onad=P)ip#]-"><field name="Ht">HUSKYLENSResultType_t.HUSKYLENSResultBlock</field><value name="id"><shadow type="math_number" id="VeL(#cMJit/aK[c!S_lf"><field name="NUM">4</field></shadow></value></block></value><statement name="DO3"><block type="device_print_message" id="fEAgB!s;Bb?Sjyk[_]N;"><value name="text"><shadow type="text" id="?ylyqYy`TIIeQ;h5v_M6"><field name="TEXT">GO!</field></shadow></value><next><block type="basic_show_icon" id="_{Q5kzv:lYvHfo?jxTiE"><field name="i">IconNames.Yes</field><next><block type="device_ring" id="~G,JSyg4/Wh0H(sGn.OK"><value name="note"><shadow type="device_note" id="i9pLE=0gxi,}@M](0(Qp"><field name="name">988</field></shadow></value><next><block type="device_rest" id="c^J0wUNoO@#%7|wU{7g}"><value name="duration"><shadow type="device_beat" id="#n.MK!V.jr2]}9t5W:W-"><field name="fraction">BeatFraction.Double</field></shadow></value><next><block type="function_call" id="@,=`d3E@:Mq,D4qjw#KS"><mutation name="sendDirection" functionid="rn~{|HCb5(`h}:[~XVv$"></mutation></block></next></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="device_show_number" id="00YkY`?+9jh@pll[^0`5"><value name="number"><shadow type="math_number" id=":sPf5okppMI-0seS04c~"><field name="NUM">0</field></shadow><block type="huskylens_readBox_s" id="r*JA:DW3}SIcb{SUk|#x"><field name="data">Content3.ID</field></block></value><next><block type="device_pause" id="%fm7fZd_~`SM,1T(;A%~"><value name="pause"><shadow type="timePicker" id="AJho^WC3/0~efoJpcB3Z"><field name="ms">500</field></shadow></value><next><block type="basic_show_icon" id="M0CoQR3uE:-W9ukPK~.i"><field name="i">IconNames.No</field><next><block type="device_pause" id="nhrY83,R3n2:?JyD=S3`"><value name="pause"><shadow type="timePicker" id="pc?1_l8@{]-_mCj3Td`3"><field name="ms">500</field></shadow></value><next><block type="device_ring" id="[,kMr^lXh-2sOHqjVJ,m"><value name="note"><shadow type="device_note" id="fFB_oQfYm`^bC][X)ji:"><field name="name">131</field></shadow></value></block></next></block></next></block></next></block></next></block></statement><next><block type="device_clear_display" id="m8^2jjnpOEQW$~vm#_}?"></block></next></block></next></block></statement></block><block type="function_definition" id="rCM(pVOCH0-_`dp]14.U" x="-369" y="1179"><mutation name="PlayRobot" functionid="z+rLm}N#?0Y/^P4Sq5Um"></mutation><field name="function_name">PlayRobot</field><statement name="STACK"><block type="basic_show_icon" id="MlSD).;=P$rpQ?J/l{_B"><field name="i">IconNames.Ghost</field><next><block type="pxt_controls_for_of" id="+r:nM[:Ubyt/15c?#^61"><value name="VAR"><block type="variables_get_reporter" id="kC*+KnI$A)IY]-7Jc2Rf"><mutation duplicateondrag="true"></mutation><field name="VAR" id="o0)ftaSr;lh4*E=;+M8g">value2</field></block></value><value name="LIST"><block type="string_split" id="hwUBtBCigAr;sjK/ojrp"><value name="this"><shadow type="text" id="EJEoiby_846LW]o}tb[q"><field name="TEXT">this</field></shadow><block type="variables_get" id="sZ}*b|UNZ/=}[+!s!I$6"><field name="VAR" id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</field></block></value><value name="separator"><shadow type="text" id="UwLjfLbwyPRZvVZf3g/="><field name="TEXT">,</field></shadow></value></block></value><statement name="DO"><block type="function_call" id="iqkub]97)3;}]U/#?@=B"><mutation name="showDirection" functionid="%(JbMIFJMS2nasx;?[yC"><arg name="Direction2" id="qz01ch8i485utplvdubl" type="string"></arg></mutation><value name="qz01ch8i485utplvdubl"><shadow type="text" id="M,Gr^-:X1Wc:NO:.;wQ`"><field name="TEXT">abc</field></shadow><block type="variables_get" id="pT+4Qt$|%v[P%%icAc}r"><field name="VAR" id="o0)ftaSr;lh4*E=;+M8g">value2</field></block></value></block></statement><next><block type="basic_show_icon" id="XBzAdJJf[[Xrofmt0Rh@"><field name="i">IconNames.Yes</field></block></next></block></next></block></statement></block><block type="function_definition" id="S;Y#cP!%T1*zu:co%*8Y" x="600" y="1387"><mutation name="sendDirection" functionid="rn~{|HCb5(`h}:[~XVv$"></mutation><field name="function_name">sendDirection</field><statement name="STACK"><block type="variables_set" id="3}tyaDI$@wrw5?d+!cd7"><field name="VAR" id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</field><value name="VALUE"><shadow type="math_number" id="gP.NQ1*-}s*wGdR(6{xa"><field name="NUM">0</field></shadow><block type="text" id="cOr:TsJ!Nt%;6!stOJY5"><field name="TEXT"></field></block></value><next><block type="pxt_controls_for_of" id="7oOTtPOSsQz$8He,/!3C"><value name="VAR"><block type="variables_get_reporter" id="Gk9?TsS$~g[6d~dV~KRr"><mutation duplicateondrag="true"></mutation><field name="VAR" id="g(?s[%;X{=75^K#!$#/;">value</field></block></value><value name="LIST"><block type="variables_get" id="jb4M2^^]~{^=`(=iI+*I"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field></block></value><statement name="DO"><block type="variables_set" id=",X71eT$FpPAqp[8p+=RM"><field name="VAR" id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</field><value name="VALUE"><shadow type="math_number" id="WI+0pPj4Y4e/__D])))j"><field name="NUM">0</field></shadow><block type="text_join" id="K+o2nk6Y9p;~i9#1|2]D"><mutation items="3"></mutation><value name="ADD0"><shadow type="text" id="LdkXdNf3.N=w}hEZ|{Ug"><field name="TEXT"></field></shadow><block type="variables_get" id="Pc4+D$eK/8o9uoJ7y}c2"><field name="VAR" id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</field></block></value><value name="ADD1"><shadow type="text" id="I[8`/W6-`SPba:x?eu|n"><field name="TEXT"></field></shadow><block type="variables_get" id="xN%:cME4Ts8k=8+x1Dr:"><field name="VAR" id="g(?s[%;X{=75^K#!$#/;">value</field></block></value><value name="ADD2"><shadow type="text" id="2]hf.iWXY6Kv=3?u3=Ho"><field name="TEXT">,</field></shadow></value></block></value></block></statement><next><block type="radio_datagram_send_string" id="YWrzpMH7u)oK1c@*Hhgy"><value name="msg"><block type="variables_get" id="0Xv|+W?o?1Mcpe!(C`=)"><field name="VAR" id="(SK1[a?eZ(?iZ?aYEV~c">RadioString</field></block></value><next><block type="function_call" id="Crt^#c%sCVGR(gejOQ:a"><mutation name="PlayRobot" functionid="z+rLm}N#?0Y/^P4Sq5Um"></mutation><next><block type="variables_set" id="Gu{/lV#r0s^%gc[L(.,5"><field name="VAR" id="3jn]ytSZO#nft~U92{,=">Directions</field><value name="VALUE"><block type="lists_create_with" id="SgB]5{jj1I9{`kM_6)a}"><mutation items="0" horizontalafter="3"></mutation></block></value></block></next></block></next></block></next></block></next></block></statement></block></xml>