-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 69.5 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</variable><variable id="c|0+GgiOX}-f?;~j(408">list</variable><variable id="T224]BW*Szm~x/-If3{.">i</variable><variable id="g{U,iW^)WuODCOx2rs5q">commandMotorDuration</variable><variable id="F@w$W|,Ghd(oL}5)a=Wt">commandMotorSpeed</variable><variable id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</variable><variable id="[8~*[MH`g`Bx!*-{82PQ">commandMotorDirection</variable><variable id="SY$qKKJ^|GP3eJqd!adZ">commandSegmented</variable><variable id="8%_={t+~16:$v$buZmBk">mainCommand</variable><variable id="YS:h1tWRjn$Z_?={-uTr">index</variable><variable id="RENRa+0o)2B!}ntzJYo2">maxMessageLength</variable><variable id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</variable><variable id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</variable></variables><block type="function_definition" id="?ZX/r9lh8^9.x%~n%03w" x="2748" y="-234"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><field name="function_name">SendError</field><value name="j5e2izqxz244b6hjtz0e"><block type="argument_reporter_string" id="k0pd}ihtl/+6{x)^F?*x"><mutation duplicateondrag="true"></mutation><field name="VALUE">errorMessage</field></block></value><statement name="STACK"><block type="function_call" id="=@A_c;#1g,1}u5OLZFNM"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id="6x-X6,BZXn7M6peMCOA/"><field name="TEXT">abc</field></shadow><block type="text_join" id="qPNYA{C:Mw]=fR3bgGEL"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="iS5c./:|KoM}u_8)qN/w"><field name="TEXT">$$</field></shadow></value><value name="ADD1"><shadow type="text" id="XZMQW.APVwh~L#KA|(et"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="GWq^AiyeU#`D=zCiNCC|"><field name="VALUE">errorMessage</field></block></value></block></value></block></statement></block><block type="function_definition" id="D@gE|4bGMK;8yd;43HKW" x="3352" y="-228"><mutation name="CommandShow" functionid="GFLDhS|.c/=Gy!^SuD1K"><arg name="params" id="pqxun0mcs3ih2xbw9qwcg" type="Array"></arg></mutation><field name="function_name">CommandShow</field><value name="pqxun0mcs3ih2xbw9qwcg"><block type="argument_reporter_array" id="SgdpzS5byx,Od[E#I4jh"><mutation duplicateondrag="true"></mutation><field name="VALUE">params</field></block></value><statement name="STACK"><block type="controls_if" id="lz{v0I*=c3]dm(/{PleA"><value name="IF0"><shadow type="logic_boolean" id="M3e5N!^TwI9f4JeQ/K?0"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="b{p.aaOO;dXfWC@}*(w/"><value name="BOOL"><shadow type="logic_boolean" id="(zTPc7$Gw.]r[O=*k0p4"><field name="BOOL">TRUE</field></shadow><block type="function_call_output" id="|t:`PI(sY[Ev@M;Jt,,{"><mutation name="ValidateParams" functionid="O^%oja1v]pH=lc$T1I6M"><arg name="length" id="w5gr4h0cyzrng44uq0fm" type="number"></arg><arg name="params" id="4nz075ju987je02i3r1rk" type="Array"></arg></mutation><value name="w5gr4h0cyzrng44uq0fm"><shadow type="math_number" id="H*}m[!qpLT5O=VR4c)y5"><field name="NUM">1</field></shadow></value><value name="4nz075ju987je02i3r1rk"><block type="argument_reporter_array" id="*3s;v+z+$]u#S*6$@bS%"><field name="VALUE">params</field></block></value></block></value></block></value><statement name="DO0"><block type="function_return" id=":BS[+a3Ij!OUFn,R)yl:"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="{rdG1uz`$b/6Q~|ZHQ~A"><field name="NUM">0</field></shadow><block type="logic_boolean" id=")u_epk27St+Va5#Qe;J("><field name="BOOL">FALSE</field></block></value></block></statement><next><block type="device_print_message" id="Od{[na!g[ec6-_e|*?FE"><value name="text"><shadow type="text" id="Q;oXXlj,mYk0};93A(jg"><field name="TEXT"></field></shadow><block type="typescript_expression" id="gM.ir1_$1}jbDNDPYPk2"><field name="EXPRESSION">(params.join(" "))</field></block></value><next><block type="function_return" id="-lgNgph3/z3!,q}iH0/N"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="vn0[]hn5EA1.4M.7R|0Z"><field name="NUM">0</field></shadow><block type="logic_boolean" id="i[aM_VQ:/yLxa;=Fe#cT"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></statement></block><block type="function_definition" id="MQ}t+d|g[;d]Vrw:aiC4" x="1611" y="-129"><mutation name="UndoCommand" functionid="4_I?ov2csufGwgGsZp5*"></mutation><field name="function_name">UndoCommand</field><statement name="STACK"><block type="controls_if" id="h1c4*EfP:[+hc,}m5ATR"><value name="IF0"><shadow type="logic_boolean" id="RdCkvV.8-t+dsm2Krv:;"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="~@GGlx%h[!YLz}_9?.dF"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="9{r*1([{~,=$5|U;k/ld"><field name="NUM">0</field></shadow><block type="lists_length" id="WOXH)buhflVoJc|d19Ng"><value name="VALUE"><block type="variables_get" id="tlR89|8K,S))P7em#|x7"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value><value name="B"><shadow type="math_number" id="O!?@2_99P*.?4z$rt$*d"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="O!M$h1{LEW?o2Om)m0[l"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id="Kai`bpgpv3B=up5E[eLk"><field name="TEXT">abc</field></shadow><block type="text_join" id="jrowWJHLs8hEHyc/MLmN"><mutation items="3"></mutation><value name="ADD0"><shadow type="text" id="d]AoVS8Z|%R7Vy/)kRFW"><field name="TEXT">Undid '</field></shadow></value><value name="ADD1"><shadow type="text" id="OzQYYtsg;Q,,VR52bf*("><field name="TEXT"></field></shadow><block type="array_pop" id="pRa2/RNKgceH4d==Rp8D"><value name="list"><block type="variables_get" id=";6HU@$ItY|)JuDt-lKU?"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value><value name="ADD2"><shadow type="text" id="m:Eayb0GxpK40=/V${t,"><field name="TEXT">'</field></shadow></value></block></value></block></statement></block></statement></block><block type="pxt-on-start" id=")o@8!R=k_,z@dVD@k:He" x="39" y="49"><statement name="HANDLER"><block type="typescript_statement" id="!TtqqL5V/PZRN)b:w(rB"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let commandMotorSpeed = 0" numlines="1" declaredvars="commandMotorSpeed"></mutation><next><block type="typescript_statement" id="_?wU7mBz}-}}/[LI:zd/"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let radioRecBuffer = """ numlines="1" declaredvars="radioRecBuffer"></mutation><next><block type="typescript_statement" id="V{N0f!^/~Y;*o!%SB|@n"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let receivedCommand = """ numlines="1" declaredvars="receivedCommand"></mutation><next><block type="variables_set" id="Ab1AKG7cK8he=rL-,W{@"><field name="VAR" id="RENRa+0o)2B!}ntzJYo2">maxMessageLength</field><value name="VALUE"><shadow type="math_number" id="A`H)0qXIH?O%9YZ25Cq^"><field name="NUM">18</field></shadow></value><next><block type="radio_set_group" id="@hx08asC~6^Iu!2PTUv|"><value name="ID"><shadow type="math_number_minmax" id="Mb.mc7IKO@k_BeO]u7sy"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><next><block type="radio_set_frequency_band" id="(xwLhT8}34JJN-2Zv;`7"><value name="band"><shadow type="math_number_minmax" id="U2AR)Xkt6#wKV^CY{Vh/"><mutation min="0" max="83" label="Band" precision="0"></mutation><field name="SLIDER">83</field></shadow></value><next><block type="radio_set_transmit_power" id="~.s^arpbFb@w*`Ni5Zy^"><value name="power"><shadow type="math_number_minmax" id=".FV|P+AEs?{DBATqEtv8"><mutation min="0" max="7" label="Power" precision="0"></mutation><field name="SLIDER">7</field></shadow></value><next><block type="device_print_message" id="}UNE!f,ZHezKaCLE`KAy"><value name="text"><shadow type="text" id="KEjZ%4xL2K8@f0giW8=!"><field name="TEXT">Init</field></shadow></value><next><block type="rovershield_servo" id="C~pH]n+sbT}^CX.fmzu+"><field name="index">rovershield.Servos.S1</field><value name="degree"><shadow type="math_number_minmax" id="}8t4)Nb?N)KMfOxpN{n("><mutation min="0" max="180" label="Number" precision="0"></mutation><field name="SLIDER">90</field></shadow></value><next><block type="rovershield_servo" id="re.Zqzi7^I1`hA3@r8TM"><field name="index">rovershield.Servos.S2</field><value name="degree"><shadow type="math_number_minmax" id="`3L_gv~zk^^M|[s=sxU1"><mutation min="0" max="180" label="Number" precision="0"></mutation><field name="SLIDER">90</field></shadow></value><next><block type="rovershield_servo" id="lF8+25l@A~O?7Dr}$fs]"><field name="index">rovershield.Servos.S3</field><value name="degree"><shadow type="math_number_minmax" id="X8mV76bbN[[/~!Y)ZvQu"><mutation min="0" max="180" label="Number" precision="0"></mutation><field name="SLIDER">90</field></shadow></value><next><block type="rovershield_servo" id="Qdl9n`~Ce?Ux9rM6yG}^"><field name="index">rovershield.Servos.S4</field><value name="degree"><shadow type="math_number_minmax" id="wfH|-cH8V!46r?+}p#iT"><mutation min="0" max="180" label="Number" precision="0"></mutation><field name="SLIDER">90</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="J|G4D}]ZB5hzEf3SNbgU" x="3799" y="-129"><mutation name="ListCommands" functionid="olnh[#?rolE/CJBv3-c["></mutation><field name="function_name">ListCommands</field><statement name="STACK"><block type="function_call" id="MIfH5WTF}H5Yv_0.qK)`"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id="G0_Ib.dXZ1R@~VES[|d)"><field name="TEXT">All commands in queue:</field></shadow></value><next><block type="pxt_controls_for" id="cR7241F/U*/5!agthu)N"><value name="VAR"><block type="variables_get_reporter" id="uQkxKDKeg9/)dmH{`W`D"><mutation duplicateondrag="true"></mutation><field name="VAR" id="T224]BW*Szm~x/-If3{.">i</field></block></value><value name="TO"><shadow type="math_whole_number" id="615Yeu{1VY)|_{g}1T(R"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="CPGi6u@j-?).ZKmXm@g5"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="VNd%~JGAe)+FwX`yL=th"><field name="NUM">0</field></shadow><block type="lists_length" id="aq5^HJnH{zQGe,V+BYUy"><value name="VALUE"><block type="variables_get" id="rx?9Z=oMT:]/Cq/i(HwR"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value><value name="B"><shadow type="math_number" id="OI.C2yG:9zmun=;A,e/7"><field name="NUM">1</field></shadow></value></block></value><statement name="DO"><block type="function_call" id="x+GADC4H580@x]k{?i,F"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id=")):{$HzbiUMV@dKWC2?F"><field name="TEXT">abc</field></shadow><block type="text_join" id=":[Ft_1p2^9@XkNHOvBz0"><mutation items="3"></mutation><value name="ADD0"><shadow type="text" id="eD;7D41V)(9(JO94!Y3-"><field name="TEXT"></field></shadow><block type="variables_get" id="#)Cpf:c7g}+XCiZ:+_@z"><field name="VAR" id="T224]BW*Szm~x/-If3{.">i</field></block></value><value name="ADD1"><shadow type="text" id="hdV,R/Zn+8b2_)RSw]z("><field name="TEXT"> : </field></shadow></value><value name="ADD2"><shadow type="text" id="f+ANVw=E:5=?-+!rbAo]"><field name="TEXT"></field></shadow><block type="lists_index_get" id="j/}a(h_)qP]aRKAli9!I"><value name="LIST"><block type="variables_get" id="j[3?$asl.S(hD_ZQ#l?D"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value><value name="INDEX"><shadow type="math_number" id="[wPeQLWJLCq,_govNyDE"><field name="NUM">0</field></shadow><block type="variables_get" id="8~}^`/vN5m+S^,T:}1HY"><field name="VAR" id="T224]BW*Szm~x/-If3{.">i</field></block></value></block></value></block></value></block></statement></block></next></block></statement></block><block type="radio_on_string_drag" id="fe`@DhV~TO|vdSZH|dgT" x="507" y="210"><value name="HANDLER_DRAG_PARAM_receivedString"><block type="argument_reporter_string" id="#8$VU6)m#_byXL/]x*[{"><mutation duplicateondrag="true"></mutation><field name="VALUE">receivedString</field></block></value><statement name="HANDLER"><block type="variables_set" id="ZY?b(wUx_-l.uS!?6m}S"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field><value name="VALUE"><shadow type="math_number" id="s[f0}f5]oQbg+S3V.D`s"><field name="NUM">0</field></shadow><block type="text_join" id="Zq-elFl6N5MjryvjFgur"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="vxLU[%M3..,z7_.ci(v!"><field name="TEXT"></field></shadow><block type="variables_get" id="OnB$AfYXqd2z7Af#t]cN"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field></block></value><value name="ADD1"><shadow type="text" id="yMwYVH!V,|L5(LOWaxOO"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="Mdqr*6JX#%{.kFR;;QRK"><field name="VALUE">receivedString</field></block></value></block></value><next><block type="device_while" id="}bX4UE)oNPD[N.NlApWt"><value name="COND"><shadow type="logic_boolean" id="5j:0YDE+%XV_heH/$X|S"><field name="BOOL">TRUE</field></shadow><block type="string_includes" id="xNc$ePtRtTDiVq$(W?Xy"><value name="this"><shadow type="text" id="g1F$+0t#H/Yd_Tp}}]PR"><field name="TEXT"></field></shadow><block type="variables_get" id="gP~X2S:p89lb-Cqt]nvd"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field></block></value><value name="searchValue"><block type="typescript_expression" id=":odLD#UAX19k}RDt~+DS"><field name="EXPRESSION">"\n"</field></block></value></block></value><statement name="DO"><block type="typescript_statement" id="f`Y+_@mg5b{!L,VluOoG"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="receivedCommand = radioRecBuffer.substr(0, radioRecBuffer.indexOf("\n")).trim()" numlines="1"></mutation><next><block type="variables_set" id="1N`^A;!,a3ofb}HdpUMA"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field><value name="VALUE"><shadow type="math_number" id="SfKNtbNb@N[1{PN;p8[O"><field name="NUM">0</field></shadow><block type="string_substr" id="M+?vAo@(4m(6BI3/_9yM"><value name="this"><shadow type="text" id="ao{kgcLbNio6b5?#(QB?"><field name="TEXT"></field></shadow><block type="variables_get" id="uv$Oa4?2ux[FWS!E60yW"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field></block></value><value name="start"><block type="math_arithmetic" id="r;fT|68xEO(-bpmGQOD}"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="b60C_mI%z]q`V-1c2Y~F"><field name="NUM">0</field></shadow><block type="string_indexof" id="%+[QS@#R=Y#X:/o$e;a4"><value name="this"><shadow type="text" id=",vXgFukQD?R1%CG{K)+g"><field name="TEXT"></field></shadow><block type="variables_get" id="/]ls(Cdcix)t|CvYQ=hb"><field name="VAR" id="vYr9ZYu9du5oMKq8?Aa/">radioRecBuffer</field></block></value><value name="searchValue"><block type="typescript_expression" id="he(osEA2u[Z3,i,MlsYU"><field name="EXPRESSION">"\n"</field></block></value></block></value><value name="B"><shadow type="math_number" id="gopRLpAp3@o/p2t4ixw4"><field name="NUM">1</field></shadow></value></block></value><value name="length"><shadow type="math_number" id="bo/EA3_4bGUwTqr3fuib"><field name="NUM">0</field></shadow></value></block></value><next><block type="controls_if" id=")xQyed6Z5Kuabe.5%YKW"><value name="IF0"><shadow type="logic_boolean" id="2U~8M*!,$r~r{*F[]TB0"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="K[RR#a^zb^?d8@,kt1)="><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="Q50CM+Sz6Ew~1`t^9Fej"><field name="NUM">0</field></shadow><block type="text_length" id="X@[.2|ndlA(P4(5A/7M+"><value name="VALUE"><block type="variables_get" id="u,KDAVe}7(QM$#PGC(g-"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value></block></value><value name="B"><shadow type="math_number" id="Q`$uT8nrwcr-`vlqqWf`"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="continue_keyword" id="o8%Q7ns,aMSD:DS[M}W-"></block></statement><next><block type="controls_if" id="$0e[q3*MEyPyECQ5V.z-"><mutation elseif="3" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="}-mB?TN^.)8SAh3~3}Z^"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="W-CSwU1bFWk)8+8)IMe="><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="AvC8LRq8tuR=c]oKpJWy"><field name="NUM">0</field></shadow><block type="variables_get" id="2I9UsKchv[Ncr6B8h`=z"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value><value name="B"><shadow type="math_number" id="uyuFT;KA}X0FfwMZWO63"><field name="NUM">0</field></shadow><block type="text" id="?eMK|Yk%d(oNhWLz,6Nb"><field name="TEXT">RUN</field></block></value></block></value><statement name="DO0"><block type="function_call" id="zh`(~lT`%K`ct-;k9oHi"><mutation name="RunCommandQueue" functionid="||@0MkI?i239UG3K?wK`"></mutation></block></statement><value name="IF1"><shadow type="logic_boolean" id="`v_hcp,.=V{*X!fZ9W.Q"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="bso^[~O;!UAe|r,f6X$;"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="ax}(Y.Fu`D!3~_#7ha%r"><field name="NUM">0</field></shadow><block type="variables_get" id="!77Sp}3J9!g3DX!YHGaR"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value><value name="B"><shadow type="math_number" id="9a?pkC_d*3z)8|=+8-17"><field name="NUM">0</field></shadow><block type="text" id="y6`l*_W*a!WsF0/rhn~O"><field name="TEXT">CLEAR</field></block></value></block></value><statement name="DO1"><block type="function_call" id="PCr{0u`:(OOHQg$,b9EH"><mutation name="ClearCommandQueue" functionid="Wj6YPK5|5aG9^sMr@=,`"></mutation></block></statement><value name="IF2"><shadow type="logic_boolean" id="3bkJ-9E5xjKMd$B2V1)?"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="C;qwkXL%1*V[-kN3NBqG"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="nenC!ESb(.sn+2SOPn7-"><field name="NUM">0</field></shadow><block type="variables_get" id="$pJ`qrV$)vXf?kIqL~{`"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value><value name="B"><shadow type="math_number" id="0]:w0*YIjh69FwTEj-C{"><field name="NUM">0</field></shadow><block type="text" id="ZC:O+70E{Mrh-9r0-duA"><field name="TEXT">UNDO</field></block></value></block></value><statement name="DO2"><block type="function_call" id="6ON`[cP?nlSnJ#WTD1t/"><mutation name="UndoCommand" functionid="4_I?ov2csufGwgGsZp5*"></mutation></block></statement><value name="IF3"><shadow type="logic_boolean" id="8nv7W(i2Fq]ICx),|lUj"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="_V]rFXrVuh7m5JN$inj)"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="i4zfqi,uIm.MN.ON^f}x"><field name="NUM">0</field></shadow><block type="variables_get" id="_j^APsRc5wAXRNJ[ayd?"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value><value name="B"><shadow type="math_number" id="WXGXD_%!Wq(bYh@O/QT]"><field name="NUM">0</field></shadow><block type="text" id="h{~QP9ktw(cP0akta,HQ"><field name="TEXT">LIST</field></block></value></block></value><statement name="DO3"><block type="function_call" id="DzWi^.E$#h=FYCi-lFJg"><mutation name="ListCommands" functionid="olnh[#?rolE/CJBv3-c["></mutation></block></statement><statement name="ELSE"><block type="function_call" id="_~j)Tu=cVmr+]tL^BBN*"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id="P)~I/)0LwUG8c-sIhL||"><field name="TEXT">abc</field></shadow><block type="text_join" id="K}%CuhT`E3xY$)KUe`Gj"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="*R1d`bN_O/!SH.dLl_jo"><field name="TEXT">Received command: </field></shadow></value><value name="ADD1"><shadow type="text" id="x?zYIOwi7}u]9EY{35iZ"><field name="TEXT"></field></shadow><block type="variables_get" id="HcjEr|}SWyo#8qZu-({e"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value></block></value><next><block type="array_push" id="e_9028yubLf=@An~=c,t"><value name="list"><block type="variables_get" id=".ywTsp.hewJ2_SPx[$P%"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value><value name="value"><block type="variables_get" id=")b|G*ON+9]!2tNus{.mT"><field name="VAR" id="K3{)D=L^O1KM)4O(C*E@">receivedCommand</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type="function_definition" id="3HmnemAgF!dp00gcNM!`" x="96" y="945"><mutation name="RunCommand" functionid="0(j)I~^t]ok+nW{kM=SI"><arg name="command" id="u80d87o3sgub2n3ezo6dn" type="string"></arg><arg name="params" id="uvdjjbmk37v0y6nsr8ad" type="Array"></arg></mutation><field name="function_name">RunCommand</field><value name="u80d87o3sgub2n3ezo6dn"><block type="argument_reporter_string" id="l{LFtbXESHiSEYripGl^"><mutation duplicateondrag="true"></mutation><field name="VALUE">command</field></block></value><value name="uvdjjbmk37v0y6nsr8ad"><block type="argument_reporter_array" id="C4aEGg;NJcCRC5qGJU9*"><mutation duplicateondrag="true"></mutation><field name="VALUE">params</field></block></value><statement name="STACK"><block type="controls_if" id=")]YSj?iZ?S:xUU03}t)@"><mutation elseif="2" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="Pt99|,OcdRK,%#ks();q"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="(N*DMjlWXl3+G7zFQ#tk"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="bPCfwPgMdD^y=ZZ8:K{/"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="SZR}{nqPfkOuG]:kf+#)"><field name="VALUE">command</field></block></value><value name="B"><shadow type="math_number" id="8z#2~.L9|j$CR-u?@8L/"><field name="NUM">0</field></shadow><block type="text" id="=DKb^A3I3DFP.i4)^Qa-"><field name="TEXT">show</field></block></value></block></value><statement name="DO0"><block type="function_return" id="/gA+SXz(.7/s/|X^a75W"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="o,yKGe4|Y%}uk]3U8A9D"><field name="NUM">0</field></shadow><block type="function_call_output" id="lm2cLxNT4K1qL33soj#K"><mutation name="CommandShow" functionid="GFLDhS|.c/=Gy!^SuD1K"><arg name="params" id="pqxun0mcs3ih2xbw9qwcg" type="Array"></arg></mutation><value name="pqxun0mcs3ih2xbw9qwcg"><block type="argument_reporter_array" id="5hQt)B-c(J=Pntq8XnT;"><field name="VALUE">params</field></block></value></block></value></block></statement><value name="IF1"><shadow type="logic_boolean" id="7TdGM5|9:@XsW9G1Mv7Q"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="IiA*ckTpoWw8t*nBp+$Q"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="]jrr~eXi7k6[Uwc_p%t]"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="vUlQ9jbbMT9JUE?0:i%A"><field name="VALUE">command</field></block></value><value name="B"><shadow type="math_number" id="8/~q|FRw:nl,o.4h3MJ,"><field name="NUM">0</field></shadow><block type="text" id=":HKisJ%=Dh^A`6x6g8;S"><field name="TEXT">motor</field></block></value></block></value><statement name="DO1"><block type="function_return" id="tyJI9^VlV6=EcdZ+M!fI"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="t]Ij|zBnP*Qk||H6Xg*@"><field name="NUM">0</field></shadow><block type="function_call_output" id="O%z:~dnB}xC~,EKY49?n"><mutation name="CommandMotor" functionid="S0F:~vq**C_NJT|2N[Cl"><arg name="params" id="38m97di8qdbn0q9mnv97" type="Array"></arg></mutation><value name="38m97di8qdbn0q9mnv97"><block type="argument_reporter_array" id="DIU}NsFnPy$:BQS7GdDe"><field name="VALUE">params</field></block></value></block></value></block></statement><value name="IF2"><shadow type="logic_boolean" id="A@k#o,6y)to#{_*:d/8f"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="ZPdrYakihC^J/pq:/OWf"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="2,git{!WtAT?TbrCoaUQ"><field name="NUM">0</field></shadow><block type="argument_reporter_string" id="7IWW^JVd-ia?u,AMc]=L"><field name="VALUE">command</field></block></value><value name="B"><shadow type="math_number" id="-}2+zQLa-Hu4zLh{14*h"><field name="NUM">0</field></shadow><block type="text" id="idU#M~}.(xSMf*CJqnv|"><field name="TEXT">servo</field></block></value></block></value><statement name="DO2"><block type="function_return" id="=-_e@Q093)8^)7GD_i:|"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="6!txTo)|O`8Zc*R-aj]:"><field name="NUM">0</field></shadow><block type="function_call_output" id=";cEt4l(8KOvo(HTJvs7M"><mutation name="CommandServo" functionid="Lot73*kj5,h_7GT012zw"><arg name="params" id="eph96k1523iju5hwxq8b" type="Array"></arg></mutation><value name="eph96k1523iju5hwxq8b"><block type="argument_reporter_array" id=":Ua+H`kXNI;^c:(~CN:K"><field name="VALUE">params</field></block></value></block></value></block></statement><statement name="ELSE"><block type="function_call" id="Z,Y-A3N2h[l,QTX:kJd("><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="qNk2S0/yaJoYxQ}Vgs[h"><field name="TEXT">abc</field></shadow><block type="text_join" id="|87Vwda81tE`-vj#lQ6L"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="E.CpPfaXARPT(wDWz2zS"><field name="TEXT">Unknown command </field></shadow></value><value name="ADD1"><shadow type="text" id="sy_?1GJYE{[(Tcj6!scH"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="z,1`D6e~t*iN%=QsugV5"><field name="VALUE">command</field></block></value></block></value><next><block type="function_return" id=",;/bVf{-mF.~@S::L#CJ"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="~3*gI|c%3H^({ckNcg^R"><field name="NUM">0</field></shadow><block type="logic_boolean" id="+^bQ,{PLfsBk^AjdLRjk"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></statement></block><block type="function_definition" id="%l#,_|d]stJR,byxYi,;" x="790" y="941"><mutation name="CommandMotor" functionid="S0F:~vq**C_NJT|2N[Cl"><arg name="params" id="38m97di8qdbn0q9mnv97" type="Array"></arg></mutation><field name="function_name">CommandMotor</field><value name="38m97di8qdbn0q9mnv97"><block type="argument_reporter_array" id="(h}iDA#/Ns{Q=:7W8.5m"><mutation duplicateondrag="true"></mutation><field name="VALUE">params</field></block></value><statement name="STACK"><block type="controls_if" id="9R[t,I+R3^)1#.CzQR!m"><value name="IF0"><shadow type="logic_boolean" id=":/5]-mu{Lsl8_k)XUc$8"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="5Q_vgYOglRP2aX0=zNuB"><value name="BOOL"><shadow type="logic_boolean" id="B8!9Rj:R/.)#5HC6^Q::"><field name="BOOL">TRUE</field></shadow><block type="function_call_output" id="rp5p5O-XlK1Sg/Zc+:L("><mutation name="ValidateParams" functionid="O^%oja1v]pH=lc$T1I6M"><arg name="length" id="w5gr4h0cyzrng44uq0fm" type="number"></arg><arg name="params" id="4nz075ju987je02i3r1rk" type="Array"></arg></mutation><value name="w5gr4h0cyzrng44uq0fm"><shadow type="math_number" id="r8LO.A)Y2eQ:%RnTB`Lk"><field name="NUM">3</field></shadow></value><value name="4nz075ju987je02i3r1rk"><block type="argument_reporter_array" id="dV@fL`=(_(EbSCO:Q:`,"><field name="VALUE">params</field></block></value></block></value></block></value><statement name="DO0"><block type="function_return" id="@UhNamsVw-b|zkc6p)vy"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="7$YJx[Lndbu4VfIQ$)0p"><field name="NUM">0</field></shadow><block type="logic_boolean" id="]ltIBI#,h~WU_D4V=b_5"><field name="BOOL">FALSE</field></block></value></block></statement><next><block type="variables_set" id="XPw0i47{UN#w_1lxc-r|"><field name="VAR" id="g{U,iW^)WuODCOx2rs5q">commandMotorDuration</field><value name="VALUE"><shadow type="math_number" id="H)LY-[x+-J!]g)}Xs8}8"><field name="NUM">0</field></shadow><block type="string_parsefloat" id="]NB7H|f(O/KA@I;~,qB]"><value name="text"><block type="array_shift" id="vU~0TQHg09u{f-ZqROqM"><value name="list"><block type="argument_reporter_array" id="yHouy(Fg$W5e/|x|8Ud2"><field name="VALUE">params</field></block></value></block></value></block></value><next><block type="variables_set" id="Kz(+vmWT.~V_kGq.b)kp"><field name="VAR" id="F@w$W|,Ghd(oL}5)a=Wt">commandMotorSpeed</field><value name="VALUE"><shadow type="math_number" id="3[e#C5CifSv0c40Qp.?c"><field name="NUM">0</field></shadow><block type="string_parsefloat" id="M]dJjG!BRv*QwYREVZiR"><value name="text"><block type="array_shift" id="%O)B%F7,+}hmcwP1kJ=F"><value name="list"><block type="argument_reporter_array" id="gsUBd8k_s%+HPU}{e:sR"><field name="VALUE">params</field></block></value></block></value></block></value><next><block type="controls_if" id="w(Z:Q=yiBaEq]=IBT`XI"><value name="IF0"><shadow type="logic_boolean" id="!w7)b+/nFPMT{fbssHQ-"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="`~k57[FFz7Y*1)]KwyYx"><field name="OP">OR</field><value name="A"><shadow type="logic_boolean" id="Y6%wZ#0pmwu|-z!F+$e9"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="-Y:TQ3dfGk:E_w$SO.#u"><field name="OP">LT</field><value name="A"><shadow type="math_number" id="|h2kPz4oYSMzv__v:+U_"><field name="NUM">0</field></shadow><block type="variables_get" id="nPOQf%EPT#NPg[;t3w9f"><field name="VAR" id="g{U,iW^)WuODCOx2rs5q">commandMotorDuration</field></block></value><value name="B"><shadow type="math_number" id="cI/^Ju+BUR]G+vtV,,Kt"><field name="NUM">1</field></shadow></value></block></value><value name="B"><shadow type="logic_boolean" id="*ULWHaQvrD6K@t]RPPSf"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="PyxqJ~!*?A=#+Fk!YhL0"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="Q%gHq3%$eM}Ey]{fr25p"><field name="NUM">0</field></shadow><block type="variables_get" id="*PXWj2:edAfZu8y#4/Ob"><field name="VAR" id="g{U,iW^)WuODCOx2rs5q">commandMotorDuration</field></block></value><value name="B"><shadow type="math_number" id="e8^zaXu,g#Z}r@_Xd1Nh"><field name="NUM">10000</field></shadow></value></block></value></block></value><statement name="DO0"><block type="function_call" id="HRGaWStJZ2O[GQ444lWy"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="?n0[HshtDc`!.]9*+xbn"><field name="TEXT">Motor duration must be between 1 and 10000</field></shadow></value><next><block type="function_return" id="9CoWn.uu`=,,@q={RM)a"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="*U7mZ?Yn/n2|mbL^@Yq("><field name="NUM">0</field></shadow><block type="logic_boolean" id="QbYO*X#4oA*Ox?G461o%"><field name="BOOL">FALSE</field></block></value></block></next></block></statement><next><block type="controls_if" id="5~3`$cxNbBD$R.?+[Rs9"><value name="IF0"><shadow type="logic_boolean" id="Ts=ny#8~Ltu%xZq)=ek|"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="vKD`r}^S~l,cCv6QJ/(,"><field name="OP">OR</field><value name="A"><shadow type="logic_boolean" id="7`k$G_#tgB3j/+u.*nO_"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=";1[zVV}/;-QBr-);1EW]"><field name="OP">LT</field><value name="A"><shadow type="math_number" id="fR8]cTI4/lRo)|cDb2yB"><field name="NUM">0</field></shadow><block type="variables_get" id="}Ra.SM9!U~!xt([oG%^+"><field name="VAR" id="F@w$W|,Ghd(oL}5)a=Wt">commandMotorSpeed</field></block></value><value name="B"><shadow type="math_number" id="64~WE6jUiyjcM`Zl{JG9"><field name="NUM">1</field></shadow></value></block></value><value name="B"><shadow type="logic_boolean" id="dC1G-HXVdi?|qTAeVlZZ"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="1F-UOIX,3Y!M~EAfG7_w"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="vewF2oUaA_;z)1:mq?Pz"><field name="NUM">0</field></shadow><block type="variables_get" id="!9|vDkiFV.hVUI%)[7}A"><field name="VAR" id="F@w$W|,Ghd(oL}5)a=Wt">commandMotorSpeed</field></block></value><value name="B"><shadow type="math_number" id=")0f7Zu6O)E}}quakALX."><field name="NUM">255</field></shadow></value></block></value></block></value><statement name="DO0"><block type="function_call" id="GGZFAIxPQEu]$c+8+aJ2"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="E+DHl[)I*|vM1x~]%5a#"><field name="TEXT">Motor speed must be between 1 and 255</field></shadow></value><next><block type="function_return" id="G=O+/M4T)c%hQC5ry`la"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="dl`WI0l:Y]i5hy/Ym[=D"><field name="NUM">0</field></shadow><block type="logic_boolean" id="dMFRpDvx:uU]G:1CybGB"><field name="BOOL">FALSE</field></block></value></block></next></block></statement><next><block type="device_while" id="wI}.%CjAbDeSb#JsS|0O"><value name="COND"><shadow type="logic_boolean" id=")*v23De+^uBrjgq4uO+J"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="m1x,GEtmnKCL)zWz+K-Z"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="~N*ni#qLob=%1~cn#bu8"><field name="NUM">0</field></shadow><block type="lists_length" id="z{;D5jST7Tjm2g.eoC;Y"><value name="VALUE"><block type="argument_reporter_array" id="[1Sb!#)(y!Jg!T9/`T+_"><field name="VALUE">params</field></block></value></block></value><value name="B"><shadow type="math_number" id=")_rM%Wt7UH*JPZf1p]Q("><field name="NUM">0</field></shadow></value></block></value><statement name="DO"><block type="variables_set" id="zyB~}e0?s~EB:DRvQq-j"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field><value name="VALUE"><shadow type="math_number" id="ey;FjT`|O`:QqM0mOHtO"><field name="NUM">0</field></shadow><block type="array_shift" id=")lLl7^KMx0V}fCh8(@YB"><value name="list"><block type="argument_reporter_array" id="u*JZ3GZ,7ZT*Q|g+S~=;"><field name="VALUE">params</field></block></value></block></value><next><block type="variables_set" id="fRLXx_I_7IcKYG!u51Em"><field name="VAR" id="[8~*[MH`g`Bx!*-{82PQ">commandMotorDirection</field><value name="VALUE"><shadow type="math_number" id="stKAh_#Z6__a]MsB4ITd"><field name="NUM">0</field></shadow><block type="array_shift" id="PA.i+#Zr(w|7[$$_]Qr@"><value name="list"><block type="argument_reporter_array" id="L|EB1?=qg|1NZ|mQ+*_X"><field name="VALUE">params</field></block></value></block></value><next><block type="typescript_statement" id="UBL%k/9/grc2!S3N6Nii"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let commandMotorDirectionEnum = rovershield.Dir.CW" numlines="1" declaredvars="commandMotorDirectionEnum"></mutation><next><block type="controls_if" id="`aaxvpUq1hQU7(5)um)#"><mutation elseif="1" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="%BuFrvf_IHb0gaBpq6@d"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="73v{0Nf]3MDojZqe8d:-"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="v_Vpr=,3QM4(OCj19^EX"><field name="NUM">0</field></shadow><block type="variables_get" id="RP.[QhuFZ#=wJ@)7qD%("><field name="VAR" id="[8~*[MH`g`Bx!*-{82PQ">commandMotorDirection</field></block></value><value name="B"><shadow type="math_number" id="]T-mzdd!oD1t/eVRMNsV"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="typescript_statement" id="U[zC#ma!=`Fi!2J^P:Bp"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="commandMotorDirectionEnum = rovershield.Dir.CW" numlines="1"></mutation></block></statement><value name="IF1"><shadow type="logic_boolean" id="+5dPvBKHf~!.Y}U-,:Nf"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="m%_6^HxCAGqe#2-H*Y;T"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="OEE1$KHrwq#a}ms%WU/1"><field name="NUM">0</field></shadow><block type="variables_get" id="h^MFs|et2Y0DMCU~9?,:"><field name="VAR" id="[8~*[MH`g`Bx!*-{82PQ">commandMotorDirection</field></block></value><value name="B"><shadow type="math_number" id="VXjtR^9=j=G_xm{oZvqY"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="typescript_statement" id="z|sypR)90/:}+YYpJJHi"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="commandMotorDirectionEnum = rovershield.Dir.CCW" numlines="1"></mutation></block></statement><statement name="ELSE"><block type="function_call" id="j#owQMgBSLNq6gZ5o=WB"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id=",6X;]]#z*HG6o_49s4D%"><field name="TEXT">Unknown motor direction. Expected 0 or 1</field></shadow></value><next><block type="rovershield_motorStopAll" id="]Ia7;-/0]D%Fr$+zK^wP"><next><block type="function_return" id="BgQ#ovmZ2#F3(lB{0I_i"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id=".hABkY`H]2Zj~`i}0}PD"><field name="NUM">0</field></shadow><block type="logic_boolean" id="?t#6p`dy/At;z|6A#WxJ"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement><next><block type="controls_if" id="R=/mBigG-U{mLNN?m2%W"><mutation elseif="5" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="8ChRXTp8fUNvh#~(z$d{"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="ILZ2omBz!G[b]cKUCO/0"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="Ond;D*PdQ{IOD!prmxJF"><field name="NUM">0</field></shadow><block type="variables_get" id="=l%FIXC!@D4[`!.]t9?+"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="WO*NWPeq+4B%O^_$aN}q"><field name="NUM">0</field></shadow><block type="text" id="fJYUS)soJD8sChH@y}E;"><field name="TEXT">VF</field></block></value></block></value><statement name="DO0"><block type="typescript_statement" id="REEm{ts6kZK1]f.PrLDX"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M1, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><value name="IF1"><shadow type="logic_boolean" id="XYxUWy=YR2,nla=FB0+v"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="zco`ppe8bzr8c:Y4jiYF"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="4999XGl4cKfli_kPn+j^"><field name="NUM">0</field></shadow><block type="variables_get" id="O/Mg0?wHt+9;N8wz(T(-"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="(J=^u{{0vTGu!HpD|8S@"><field name="NUM">0</field></shadow><block type="text" id="/IZ$=W}{JuD+:zQ{7`ur"><field name="TEXT">HF</field></block></value></block></value><statement name="DO1"><block type="typescript_statement" id="Yc[7dwHKZ?ScKn~szjzj"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M2, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><value name="IF2"><shadow type="logic_boolean" id="Nm[oAb.UtkfaBzlmVAlp"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="%=y;[6l6aDHEb[-+#++V"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="JqGf.Y6ltPXisZs+bFHE"><field name="NUM">0</field></shadow><block type="variables_get" id="=(eg:K7s`-Q6}pCBq(BT"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="Bpyo[qCLzl2|Ym4uEcF?"><field name="NUM">0</field></shadow><block type="text" id="O#W{^.7QWAUG{I$zOK-D"><field name="TEXT">VM</field></block></value></block></value><statement name="DO2"><block type="typescript_statement" id="edqelu(}:(Pw$/q#V^Ib"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M6, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><value name="IF3"><shadow type="logic_boolean" id="Uc.FD7I9Qj)/K|;g9LKH"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="9yG6|?LXoou]P3Qv-~lY"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="s4lN9{Q4oEee^dzgfSi|"><field name="NUM">0</field></shadow><block type="variables_get" id=":)!S2GKX.h+OUFwQ_b@Y"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="CF029(=xr5PQ|JY7r2rr"><field name="NUM">0</field></shadow><block type="text" id="]eLJm4gdIu7PAZq(/^pw"><field name="TEXT">HM</field></block></value></block></value><statement name="DO3"><block type="typescript_statement" id="2,IvXBaX:bM=PdFN?Rc;"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M5, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><value name="IF4"><shadow type="logic_boolean" id="kr?KETIGWoe[)/QEB|^$"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="V_BW9:Nrqi0ix[23OqQ_"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="4xOZZ:cbUet79,k@6XS/"><field name="NUM">0</field></shadow><block type="variables_get" id="ZwrSsNg;0kv5-lH@nZ6@"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="y1Ij@56AYU6JnNB8e0I2"><field name="NUM">0</field></shadow><block type="text" id="X(qi#+)TD!~Qu.Rw(~yl"><field name="TEXT">VB</field></block></value></block></value><statement name="DO4"><block type="typescript_statement" id=":_qP/ypYDAYdAE7PgKQi"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M3, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><value name="IF5"><shadow type="logic_boolean" id=",iL+PX4`K7X3{#T(C!JY"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="*m5U]-UPEpHWTHb4b02?"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="UmCh$1]Fv@/hDGM0-+.L"><field name="NUM">0</field></shadow><block type="variables_get" id="B}94W5,z$Jbjio9?p?R2"><field name="VAR" id="Iie_/pu_;`3R6)v`.Nqs">commandMotorName</field></block></value><value name="B"><shadow type="math_number" id="9MYHl^k%?MFF_BQ;RCO."><field name="NUM">0</field></shadow><block type="text" id="pRCWu.zt/+2=gKh44|)E"><field name="TEXT">HB</field></block></value></block></value><statement name="DO5"><block type="typescript_statement" id="23t`5T7@EX8OV$2+]uu_"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="rovershield.MotorRun(rovershield.Motors.M4, commandMotorDirectionEnum, commandMotorSpeed)" numlines="1"></mutation></block></statement><statement name="ELSE"><block type="function_call" id="28Dqo%}H+5zMGX*ldMZx"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="7x@31#-+sR}0TK9Oo*S$"><field name="TEXT">Unknown motor</field></shadow></value><next><block type="rovershield_motorStopAll" id="iQPF;Vy|QX/]%Uk[D08?"><next><block type="function_return" id="v|+#8TNke.YA|w7F*?]S"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="$7iLv0@../PfT({l2qxf"><field name="NUM">0</field></shadow><block type="logic_boolean" id="DptSa1U65iOaX*E4IEM:"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement><next><block type="device_pause" id="jj#e{3VN/J8}GUn,aK.b"><value name="pause"><shadow type="timePicker" id="gm$Z.N)cI7Vn`Xh`t_Zm"><field name="ms">NaN</field></shadow><block type="variables_get" id="`pOlbaI+v/QEYGF-}gv9"><field name="VAR" id="g{U,iW^)WuODCOx2rs5q">commandMotorDuration</field></block></value><next><block type="rovershield_motorStopAll" id="o+r[DFaPPa(/HB?=:uBN"><next><block type="function_return" id="kx7DhdJZy0v}G$coT{NA"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="soKDpRvIlU(],;J):q;r"><field name="NUM">0</field></shadow><block type="logic_boolean" id="nO2%@zvgHij~7WKKieeU"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="K^snW8-9xC1=VWt.HGW8" x="2623" y="905"><mutation name="ParseCommand" functionid="[email protected]!+kKmK"><arg name="inputCommand" id="9e0osx2azudziy0bno78zg" type="string"></arg></mutation><field name="function_name">ParseCommand</field><value name="9e0osx2azudziy0bno78zg"><block type="argument_reporter_string" id="/2!(Z$b|tIs|aX[]tU=["><mutation duplicateondrag="true"></mutation><field name="VALUE">inputCommand</field></block></value><statement name="STACK"><block type="function_call" id="Nf+$u,8eW-83CsU,Y:/^"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><value name="vpz9318ipqtvdy4z3kdr"><shadow type="text" id=":m,40!6r02|Pw7qNB=6k"><field name="TEXT">abc</field></shadow><block type="text_join" id="S8l`6C?((~[VVLM:v#8x"><mutation items="3"></mutation><value name="ADD0"><shadow type="text" id="L[PK,5B?OsDXaZ?E9Rxn"><field name="TEXT">Running '</field></shadow></value><value name="ADD1"><shadow type="text" id="pSyw96?Br7S.UIS~oD:W"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="rmv:W(F|HB(hSDDgaZLI"><field name="VALUE">inputCommand</field></block></value><value name="ADD2"><shadow type="text" id="WGA9QWi;ssgp!/.X7`GQ"><field name="TEXT">'</field></shadow></value></block></value><next><block type="variables_set" id="8L6ycj-Jxq::p6XNz`W_"><field name="VAR" id="SY$qKKJ^|GP3eJqd!adZ">commandSegmented</field><value name="VALUE"><shadow type="math_number" id="[A1_O}yz(wCm|QO!qJcc"><field name="NUM">0</field></shadow><block type="string_split" id="Hpr)qg@INk-A_i_4A!Eh"><value name="this"><shadow type="text" id="94$BStYBW=Wc.VzH-`gR"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="7O_eIyEI+F#3a5N1]3s4"><field name="VALUE">inputCommand</field></block></value><value name="separator"><shadow type="text" id="mWB=zK0YHac6CWvEtqG`"><field name="TEXT"> </field></shadow></value></block></value><next><block type="variables_set" id="rJa1bY+)((d=Hs8+[@z~"><field name="VAR" id="8%_={t+~16:$v$buZmBk">mainCommand</field><value name="VALUE"><shadow type="math_number" id="Ptjp$(V91Ro#7~R4tIy2"><field name="NUM">0</field></shadow><block type="array_shift" id="x!-lYW#~]o[[UPu[HD8D"><value name="list"><block type="variables_get" id="YMY{8C%:pS:UC#.n3-Wp"><field name="VAR" id="SY$qKKJ^|GP3eJqd!adZ">commandSegmented</field></block></value></block></value><next><block type="function_return" id="vi=T!P9qG@j}`MWas.p-"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="toXXi(cp3-%FW8;2XZz@"><field name="NUM">0</field></shadow><block type="function_call_output" id="}le5yHh@LrE/^~l_Omq2"><mutation name="RunCommand" functionid="0(j)I~^t]ok+nW{kM=SI"><arg name="command" id="u80d87o3sgub2n3ezo6dn" type="string"></arg><arg name="params" id="uvdjjbmk37v0y6nsr8ad" type="Array"></arg></mutation><value name="u80d87o3sgub2n3ezo6dn"><shadow type="text" id="4Vk-66;Y~?)|d.t|;zNs"><field name="TEXT">abc</field></shadow><block type="variables_get" id="LgpD_hWK~n}gXE_Uf.;%"><field name="VAR" id="8%_={t+~16:$v$buZmBk">mainCommand</field></block></value><value name="uvdjjbmk37v0y6nsr8ad"><block type="variables_get" id="0Q8;6SJ)R/QzBv3wVij?"><field name="VAR" id="SY$qKKJ^|GP3eJqd!adZ">commandSegmented</field></block></value></block></value></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="yvr,5RWr4CA5YyMv}KKY" x="3477" y="940"><mutation name="ValidateParams" functionid="O^%oja1v]pH=lc$T1I6M"><arg name="length" id="w5gr4h0cyzrng44uq0fm" type="number"></arg><arg name="params" id="4nz075ju987je02i3r1rk" type="Array"></arg></mutation><field name="function_name">ValidateParams</field><value name="w5gr4h0cyzrng44uq0fm"><block type="argument_reporter_number" id="mNsL/R*?500+wJu0x3Kb"><mutation duplicateondrag="true"></mutation><field name="VALUE">length</field></block></value><value name="4nz075ju987je02i3r1rk"><block type="argument_reporter_array" id="-E5FWx-PlWHFvGxjgL01"><mutation duplicateondrag="true"></mutation><field name="VALUE">params</field></block></value><statement name="STACK"><block type="controls_if" id="8]iWnr*Ctp_:=,nsH(_W"><value name="IF0"><shadow type="logic_boolean" id="_Jza)Q/64jy(_S{OJW3m"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="K:~#!:|9$+9OO(`wK]r)"><field name="OP">LT</field><value name="A"><shadow type="math_number" id="[Gf4NJwt{,|x?_q7ZsbN"><field name="NUM">0</field></shadow><block type="lists_length" id="FY8*{UC(97*)d{cv55lr"><value name="VALUE"><block type="argument_reporter_array" id="!vSSpzz}AftBI^;858|7"><field name="VALUE">params</field></block></value></block></value><value name="B"><shadow type="math_number" id="8OKvd4sw*}jE4j?7S)NB"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="t}6]iA#6jPM-dnwoap8K"><field name="VALUE">length</field></block></value></block></value><statement name="DO0"><block type="function_call" id="pjW%OtO[HM:x]#Z=tQ?$"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="V~9-m.QQu{/p+VVb[L.h"><field name="TEXT">abc</field></shadow><block type="text_join" id=",!}IJke_H0Xovs@mvI9@"><mutation items="4"></mutation><value name="ADD0"><shadow type="text" id="1vS}w6HxLyso@aE2o9tu"><field name="TEXT">Invalid params. Expected </field></shadow></value><value name="ADD1"><shadow type="text" id="n[W.1:_n,9R212BRrY2-"><field name="TEXT"></field></shadow><block type="argument_reporter_number" id="Vf06d`|0(@d@=kOI#0rH"><field name="VALUE">length</field></block></value><value name="ADD2"><shadow type="text" id="PO,$-SgQ*2H/PqlR;1iH"><field name="TEXT"> but got </field></shadow></value><value name="ADD3"><shadow type="text" id="qh:%$|G!]01SoEzHGK7E"><field name="TEXT"></field></shadow><block type="lists_length" id="Y1#_A@)f}d=sjo)O9QH-"><value name="VALUE"><block type="argument_reporter_array" id="s%t-)OstjPL+#w7^aBw4"><field name="VALUE">params</field></block></value></block></value></block></value><next><block type="function_return" id="-jkJ/;Y+Nv##(jDH:+qY"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="zhw9}|oUorj8v=jdtx}I"><field name="NUM">0</field></shadow><block type="logic_boolean" id="6ocOl%c_!B{WKS_[+A1:"><field name="BOOL">FALSE</field></block></value></block></next></block></statement><next><block type="function_return" id="+9]cPscH:mU13K5[[,p6"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="30B|])iWYfWgs${xRvf%"><field name="NUM">0</field></shadow><block type="logic_boolean" id="/Kw9I:Z32V0zB=7jxE52"><field name="BOOL">TRUE</field></block></value></block></next></block></statement></block><block type="function_definition" id="4l/E@~VkS}POcN}wBXb?" x="1699" y="1067"><mutation name="RunCommandQueue" functionid="||@0MkI?i239UG3K?wK`"></mutation><field name="function_name">RunCommandQueue</field><statement name="STACK"><block type="device_while" id="aWDE*tf.4N0qBDJTmDX+"><value name="COND"><shadow type="logic_boolean" id="crl_gut4Gp/F4;.t`@S}"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="V(K$;eU4.kwR+t@5x3kf"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="4:)X+oS~JLZxs]Pz;cx:"><field name="NUM">0</field></shadow><block type="lists_length" id="8x#kY9gB4F(AlERB1Jon"><value name="VALUE"><block type="variables_get" id="}N.xmbGc6I?~U*ktHq(*"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value><value name="B"><shadow type="math_number" id=")f]pg?A(q+m[?w1+7:`d"><field name="NUM">0</field></shadow></value></block></value><statement name="DO"><block type="controls_if" id="|hjU/WBa/c$L@c`W|Ujs"><comment pinned="false" h="80" w="160">basic.showNumber(commandQueue.length)</comment><value name="IF0"><shadow type="logic_boolean" id="sWLVOk|oqVdd^N|zs#x8"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="{M*aMMS[6J*NWpzXnCXI"><value name="BOOL"><shadow type="logic_boolean" id="SU_;[qRm?~z[0P%*G`q_"><field name="BOOL">TRUE</field></shadow><block type="function_call_output" id="|y90FS^w4fYiUJfU27OE"><mutation name="ParseCommand" functionid="[email protected]!+kKmK"><arg name="inputCommand" id="9e0osx2azudziy0bno78zg" type="string"></arg></mutation><value name="9e0osx2azudziy0bno78zg"><shadow type="text" id="3+R|ra7~|mciq,ql}3uP"><field name="TEXT">abc</field></shadow><block type="array_shift" id="k#PdI6R;eO[nhJ[F30UQ"><value name="list"><block type="variables_get" id="i$wy[pBK)b)m.1Xn_?qn"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value></block></value></block></value><statement name="DO0"><block type="rovershield_motorStopAll" id="9}3BBl/O+L^:cxOX0W,D"><next><block type="function_call" id=")L.[*$I$=Wyw8uXs.!3v"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="eKdxguH0qWl8JrrrzyG?"><field name="TEXT">Error while executing queue. Clearing queue</field></shadow></value><next><block type="function_call" id="jw6aQ@V#Oa};PN)L/_aV"><mutation name="ClearCommandQueue" functionid="Wj6YPK5|5aG9^sMr@=,`"></mutation><next><block type="basic_show_icon" id="FL}ukYg)%nxx1JL}+fZT"><field name="i">IconNames.Sad</field><next><block type="function_return" id="pn@]K1_K*Yzx9F,%4{*0"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="true"></mutation></block></next></block></next></block></next></block></next></block></statement></block></statement><next><block type="basic_show_icon" id="z=+i~k+|LDA#)AZUyZhC"><field name="i">IconNames.Happy</field></block></next></block></statement></block><block type="function_definition" id="Drc|)ao:Uz2%5?@urYBm" x="12" y="3380"><mutation name="SendMessage" functionid="uP!oU_pA3?*O^;EBKtcX"><arg name="message" id="vpz9318ipqtvdy4z3kdr" type="string"></arg></mutation><field name="function_name">SendMessage</field><value name="vpz9318ipqtvdy4z3kdr"><block type="argument_reporter_string" id="$:UF_5jQdA@iVn6Hj2v("><mutation duplicateondrag="true"></mutation><field name="VALUE">message</field></block></value><statement name="STACK"><block type="pxt_controls_for" id="w`^roPvbT/SY/yXy.-*@"><value name="VAR"><block type="variables_get_reporter" id="7KqOK_lK9{.5{{M]D4[$"><mutation duplicateondrag="true"></mutation><field name="VAR" id="YS:h1tWRjn$Z_?={-uTr">index</field></block></value><value name="TO"><shadow type="math_whole_number" id="1jMlWWHTZ7kDiS:@Dfuu"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="8Q2FYUl{ichs76=CdLgv"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="rPNYYu|T%.CR$6a^JBa^"><field name="NUM">0</field></shadow><block type="math_js_round" id=".:AF9_D9VT;:^lK=:feq"><field name="OP">ceil</field><value name="ARG0"><shadow type="math_number" id="|06C$pz8JQTL=$+:]4^W"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="RZmP,-L/k);wYpb^))gN"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id="@,K`K2QZ+Iy(@Q$jHAIN"><field name="NUM">0</field></shadow><block type="text_length" id="0N#V#*dfmbY.`]7xUchd"><value name="VALUE"><block type="argument_reporter_string" id=".xG6Au$nSZR#H3U!h5?;"><field name="VALUE">message</field></block></value></block></value><value name="B"><shadow type="math_number" id="3i^%f^oCcPT=m.U~(!?W"><field name="NUM">0</field></shadow><block type="variables_get" id="539R+Bzsa-%k5W=)Ert}"><field name="VAR" id="RENRa+0o)2B!}ntzJYo2">maxMessageLength</field></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="BVl6mAH,4;JgKwi!Pn-c"><field name="NUM">1</field></shadow></value></block></value><statement name="DO"><block type="radio_datagram_send_string" id="ys|$]qtJfZP${YiHG)5?"><value name="msg"><block type="string_substr" id=")Vr5n?N)#suG%|=A`N+N"><value name="this"><shadow type="text" id="%=|gl/NI#7yy.c42N|($"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="95_]??}AxJay^iTkRf~v"><field name="VALUE">message</field></block></value><value name="start"><block type="math_arithmetic" id="~k4=VCQyQus=]egr%Qo,"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="im7n=N.xY=Y,?FN^Ok8W"><field name="NUM">0</field></shadow><block type="variables_get" id="bY.||9W]K;AS%Kc1*Yij"><field name="VAR" id="YS:h1tWRjn$Z_?={-uTr">index</field></block></value><value name="B"><shadow type="math_number" id="Qcz;-1omzF4CO,Du`,`)"><field name="NUM">0</field></shadow><block type="variables_get" id="bHSdBC0K=8M2pjk5J!cV"><field name="VAR" id="RENRa+0o)2B!}ntzJYo2">maxMessageLength</field></block></value></block></value><value name="length"><block type="variables_get" id="XEQp:#$W{?%5B3z%`)Ra"><field name="VAR" id="RENRa+0o)2B!}ntzJYo2">maxMessageLength</field></block></value></block></value><next><block type="device_pause" id="dFIxWHe1,ie{dVT}OHZQ"><value name="pause"><shadow type="timePicker" id="PM##@uOD#~.KkmrCp|Y|"><field name="ms">10</field></shadow></value></block></next></block></statement><next><block type="radio_datagram_send_string" id="g^$v/x?z}FySK9-r-ZNm"><value name="msg"><shadow type="text" id="*Q76JUVIgiP`YowcKIHB"><field name="TEXT"></field></shadow><block type="typescript_expression" id="^`[Dj-|@|(HZm|Ojt2l+"><field name="EXPRESSION">("\n")</field></block></value></block></next></block></statement></block><block type="function_definition" id="5$Q-aFR.!A|8GLEO+=Q$" x="1898" y="3431"><mutation name="CommandServo" functionid="Lot73*kj5,h_7GT012zw"><arg name="params" id="eph96k1523iju5hwxq8b" type="Array"></arg></mutation><field name="function_name">CommandServo</field><value name="eph96k1523iju5hwxq8b"><block type="argument_reporter_array" id="Ed([WX#KDf.s{d4Jm.QT"><mutation duplicateondrag="true"></mutation><field name="VALUE">params</field></block></value><statement name="STACK"><block type="controls_if" id="j50SoD*eS14OlX*%TB,1"><value name="IF0"><shadow type="logic_boolean" id="AZAAyg%=8M;;i(l0a2yk"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="NXPIN(nS(w3J2*e/H!W6"><value name="BOOL"><shadow type="logic_boolean" id="xp2j`rhQ1,@~?6F~Eq,k"><field name="BOOL">TRUE</field></shadow><block type="function_call_output" id="QFkLJn]_8oz/(DA2yNzL"><mutation name="ValidateParams" functionid="O^%oja1v]pH=lc$T1I6M"><arg name="length" id="w5gr4h0cyzrng44uq0fm" type="number"></arg><arg name="params" id="4nz075ju987je02i3r1rk" type="Array"></arg></mutation><value name="w5gr4h0cyzrng44uq0fm"><shadow type="math_number" id="^#)GQw{z|GfuDMW?4%$("><field name="NUM">2</field></shadow></value><value name="4nz075ju987je02i3r1rk"><block type="argument_reporter_array" id="SzG7V@BjVOrHa=3P$=y{"><field name="VALUE">params</field></block></value></block></value></block></value><statement name="DO0"><block type="function_return" id="Y6E37s/+Rs}],Pfvf5{="><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="5%XE-FJ#t(?jr*I|W^XZ"><field name="NUM">0</field></shadow><block type="logic_boolean" id="MF1LlcM1=cBZY/XTLRrM"><field name="BOOL">FALSE</field></block></value></block></statement><next><block type="controls_if" id="I!L_,7Z(/[k()hTnhzc!"><mutation elseif="3" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="OA{1#:Es2XYTwZ)Cl7+D"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="UkX9lhywv_S$|YJ/EQUc"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="S%,:=Yx.Po#C[lejn~UI"><field name="NUM">0</field></shadow><block type="lists_index_get" id="Tu3]IAHx*:GEW2~n*Lek"><value name="LIST"><block type="argument_reporter_array" id="lYiid9Vl8s82G5c^.SH#"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="3UpLrVsozp!)hyW08!TO"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="0LYtN+V$7ZBRlwa}#=jz"><field name="NUM">0</field></shadow><block type="text" id="EYHc|*N%`)Ly;@s}!y;j"><field name="TEXT">VF</field></block></value></block></value><statement name="DO0"><block type="rovershield_servo" id="NZ{qsm:0jr%k}[%pv_sq"><field name="index">rovershield.Servos.S1</field><value name="degree"><shadow type="math_number_minmax" id="UFD%jS.wsf@??$HmWGMN"><mutation min="0" max="180" precision="0"></mutation><field name="SLIDER">0</field></shadow><block type="string_parsefloat" id="mL|z_}/Gr`T5NpuDx-C1"><value name="text"><block type="lists_index_get" id="GqA42js1Cd9*1K]R9YC#"><value name="LIST"><block type="argument_reporter_array" id=".4%y#fjhqvZV%jZbnKU1"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="xzsWMsi4Hw03A1]9VC2;"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><value name="IF1"><shadow type="logic_boolean" id="tKW06W2V-g%=n0lpU(^*"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Vp$NTu0v+MiB32XAg|{U"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="PUgm:HWRG*i^UTp~X`c*"><field name="NUM">0</field></shadow><block type="lists_index_get" id="96TRMZ^kDw9hpK[C26rm"><value name="LIST"><block type="argument_reporter_array" id="/ZGnK3ycpsNX]cP(7@jJ"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="I-fU%kqh5ghEw{D3*L0L"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="9$G+H;/T9QC1x=3yMa#,"><field name="NUM">0</field></shadow><block type="text" id="xTny32Et0..|URl-U:Ui"><field name="TEXT">HF</field></block></value></block></value><statement name="DO1"><block type="rovershield_servo" id="5y(gA.wMSeVhx4*E*tO4"><field name="index">rovershield.Servos.S2</field><value name="degree"><shadow type="math_number_minmax" id="Mes7QRDWDASOx]PQ}IZs"><mutation min="0" max="180" precision="0"></mutation><field name="SLIDER">0</field></shadow><block type="string_parsefloat" id="K8ZP)l,k71xTYw#,5fZj"><value name="text"><block type="lists_index_get" id="oXVY4o902|ZI_)I=c`Jc"><value name="LIST"><block type="argument_reporter_array" id="K]D4yOqneQ#A`{FLCKdz"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="49*7r)eM~x0^_ei21]_K"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><value name="IF2"><shadow type="logic_boolean" id="u[6^zM}^%zQdCOu_!1T6"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="LQc:/5T7b*:VbeWFb}T,"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="FO0|`/(9[3]76.NKJVu5"><field name="NUM">0</field></shadow><block type="lists_index_get" id="@+uyop,na)qqnE+CFZ=l"><value name="LIST"><block type="argument_reporter_array" id=";a,?lUlW24.1w~Aqae1b"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="(^no}1snvokcUJtLbv$}"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="RF2`7k_An(nmt@5A*QJW"><field name="NUM">0</field></shadow><block type="text" id="=M?zhPljia9u,-FCEn{d"><field name="TEXT">VB</field></block></value></block></value><statement name="DO2"><block type="rovershield_servo" id="YdmOvKe.3jRuiTO{VKS/"><field name="index">rovershield.Servos.S3</field><value name="degree"><shadow type="math_number_minmax" id="=;{:fmn%I/[email protected]@"><mutation min="0" max="180" precision="0"></mutation><field name="SLIDER">0</field></shadow><block type="string_parsefloat" id="U,#:Ke4[Wem?7A.m=`U:"><value name="text"><block type="lists_index_get" id="zn:mOJ)Q6,z]b#0K=zPi"><value name="LIST"><block type="argument_reporter_array" id="dR@t+l,C/zz*nO|D8~2@"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="^p^F^FbA/uOelbPIvC2X"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><value name="IF3"><shadow type="logic_boolean" id="k@[email protected])k!t=$B#"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="XmWh[O0zy`K2QW=lTc9@"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="(%dE+kn72uj#!4^DYZyB"><field name="NUM">0</field></shadow><block type="lists_index_get" id="Y5)4jF~xGcWps)haT-=N"><value name="LIST"><block type="argument_reporter_array" id=":?#E2XL??KalG[4IOrzB"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="4G|[JVl],H5ME~4P4n^?"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="$DZceoQ{o/saAEWCI/$}"><field name="NUM">0</field></shadow><block type="text" id="le5v[:pg^mgG%V5y?sh_"><field name="TEXT">HB</field></block></value></block></value><statement name="DO3"><block type="rovershield_servo" id="9;X)DN{:i~m~]Mx.`@97"><field name="index">rovershield.Servos.S4</field><value name="degree"><shadow type="math_number_minmax" id="j_a4_oTwaanwKX-+pXE,"><mutation min="0" max="180" precision="0"></mutation><field name="SLIDER">0</field></shadow><block type="string_parsefloat" id="nE6_,vI|1LX36u=!*1;;"><value name="text"><block type="lists_index_get" id="93.-I4-}6{/R1sPq^_wz"><value name="LIST"><block type="argument_reporter_array" id=":MPwIHZ6^tC}XxGjAwpC"><field name="VALUE">params</field></block></value><value name="INDEX"><shadow type="math_number" id="Iw/97N))6JcVCDe29,-3"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><statement name="ELSE"><block type="function_call" id="lS#b{Va;a;C1Bg5DICWs"><mutation name="SendError" functionid="HGz|]fhk9GHp1z9/cDmR"><arg name="errorMessage" id="j5e2izqxz244b6hjtz0e" type="string"></arg></mutation><value name="j5e2izqxz244b6hjtz0e"><shadow type="text" id="PA[Z5_v9{4vgpXN9QS.6"><field name="TEXT">Unknown servo</field></shadow></value><next><block type="function_return" id="?@gIiWZRAET?RNw3zBUa"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="Ou?OI+0,:qS7!bWLNpoo"><field name="NUM">0</field></shadow><block type="logic_boolean" id="B#D*BR~TD_Ky|:!+R[7H"><field name="BOOL">FALSE</field></block></value></block></next></block></statement><next><block type="function_return" id="-eebY@c?b|I9p-)b=]EW"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="R`zeglHkckxX1k;H=otm"><field name="NUM">0</field></shadow><block type="logic_boolean" id="DA@7G%CYi2GD^-*bUfvA"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></statement></block><block type="function_definition" id="#997%Wo=%d:H-k)B%l()" x="1069" y="3487"><mutation name="ClearCommandQueue" functionid="Wj6YPK5|5aG9^sMr@=,`"></mutation><field name="function_name">ClearCommandQueue</field><statement name="STACK"><block type="device_while" id="^%]XPAJIxo)pYxTO0N#$"><value name="COND"><shadow type="logic_boolean" id="Yg#5QZQ2:?o`{$~dk^u."><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="gce:tEL`{Hotv@48WYHv"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="fKfxhKL!ha.GT8/.a5JO"><field name="NUM">0</field></shadow><block type="lists_length" id="f^~{c{E[~ko+OjwKnv[}"><value name="VALUE"><block type="variables_get" id="J;~dt{gm(LiJHWLx)emc"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value></block></value><value name="B"><shadow type="math_number" id="zFD8.`ZKZRZ6feLhv%4c"><field name="NUM">0</field></shadow></value></block></value><statement name="DO"><block type="array_removeat_statement" id="TX6f6]/b}069|~~e}-;m"><value name="list"><block type="variables_get" id="QnWJ!RiqD$,rFjp(z]2N"><field name="VAR" id="(aoY8|`O74l6aBsZ;Wo{">commandQueue</field></block></value><value name="index"><shadow type="math_number" id="3rWe?lk?MdN/?icoHR-z"><field name="NUM">0</field></shadow></value></block></statement></block></statement></block></xml>