-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 11.5 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="W/+~/~c1s)^e)!P0B@S}">speed</variable><variable id="7!r1YpQ9U,*z!BYJf@V[">index</variable><variable id="k:9^F+,2rguZ_D+65T#f">offset</variable><variable id="qb+!-,RA*_kOQ9j)#-}:">direction</variable><variable id="E5hB{q2,09X=cyU(Vjas">go</variable><variable id="#m6~d__-o/-.YxuVCh6I">value</variable></variables><block type="pxt-on-start" id="t4,eP?~Xl]_2zE$5d8:Z" x="0" y="0"><statement name="HANDLER"><block type="ringbitcar_init" id="@jai7X3!p]^:S^W81F^d"><field name="left">AnalogPin.P0</field><field name="right">AnalogPin.P1</field><next><block type="variables_set" id="X9hP*ydG`!(2%kF@L:d~"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field><value name="VALUE"><shadow type="math_number" id=")iVu{)|l)0gcQNFC8qb+"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="qiCFrba+1WN?CcvP?d50"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field><value name="VALUE"><shadow type="math_number" id=":_?Vz!W?cym]KTCm#Ze3"><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement></block><block type="device_forever" id="m-o=K4ynVzCj`#2KkCIY" x="606" y="-13"><statement name="HANDLER"><block type="variables_change" id="#Bj1$bB-LKq48MJ*4C!m"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field><value name="VALUE"><shadow type="math_number" disabled="true"><field name="NUM">1</field></shadow><block type="variables_get" id="yfyx#DAHx.s`BIj{[`|["><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field></block></value><next><block type="controls_if" id="9n6Ez:Nj|Ei.VobtDLQz"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Fia6bIAfqSkMEww5J(A~"><field name="OP">LT</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="|3#R~ol79IXE3{t(kwF8"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="M9;T?[6?T]dd8[(;X7AM"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="u}Ot/|Y$YX%2Au%Jr:pp"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field><value name="VALUE"><shadow type="math_number" id="UAKLEC;BL~VilCu8R%[t"><field name="NUM">7</field></shadow></value></block></statement><next><block type="controls_if" id="91ghX!ZX[nhOp2o!92;_"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="6UBoJ!Rx65.%E3JpFEnW"><field name="OP">GT</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="B0Vr)eU(G84p$trox?KC"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="9K1K6(.Y*sgaA(jU1F=Y"><field name="NUM">7</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="h$~bfMnu:nq8bg|Nu%nH"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field><value name="VALUE"><shadow type="math_number" id=":sb6@caTEjK5gZ+?3NOZ"><field name="NUM">0</field></shadow></value></block></statement><next><block type="controls_if" id="FFK+/qEs)rP.9q31%`-1"><mutation elseif="6" else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="2Sd,utr#nK#cTHbz3v$S"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="s_|u?C|JP||+hqn.}XW9"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="^X6;nOGLG2/_D{pG;^uG"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="basic_show_arrow" id="57`LLmbF#taH)u)Uo2vy"><value name="i"><shadow type="device_arrow" id=";BuVIGEsQWJ*DEgzR`eW"><field name="arrow">ArrowNames.North</field></shadow></value></block></statement><value name="IF1"><block type="logic_compare" id="7chH[eZ9*W1IuvtkUg-p"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="rMSeq317riH#?b#*0Tv)"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id=":UO;ZA37./ntEm3jU-P["><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="basic_show_arrow" id="x.Jna0$}Tn~;$]sI+Ki!"><value name="i"><shadow type="device_arrow" id="bInH=Vfwu/DZY52Tw3t4"><field name="arrow">ArrowNames.NorthEast</field></shadow></value></block></statement><value name="IF2"><block type="logic_compare" id="uvP}i!%,5(ulJrbc%nk0"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="{k~D;z)]%1uN3GgWM/P9"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="rU.jj.-9g=Sa^*($HJ?Z"><field name="NUM">2</field></shadow></value></block></value><statement name="DO2"><block type="basic_show_arrow" id="VF^$5f6+a@8OuP]ot3#O"><value name="i"><shadow type="device_arrow" id="VCcBnnfT^):s=`cCjDpc"><field name="arrow">ArrowNames.East</field></shadow></value></block></statement><value name="IF3"><block type="logic_compare" id="{8zuQxo~Grh2|2N2aE2r"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="8Y6*9f?$MC%,L+{9JTG0"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="ZpuQ~rik]xu@V.6)XCy{"><field name="NUM">3</field></shadow></value></block></value><statement name="DO3"><block type="basic_show_arrow" id="]0]$#3;CJgR=mrowit.["><value name="i"><shadow type="device_arrow" id="4@bAd$*8*/$Vm?7^dq@("><field name="arrow">ArrowNames.SouthEast</field></shadow></value></block></statement><value name="IF4"><block type="logic_compare" id="x75kSOg;7Ia:[m5b@nm]"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="QEX8b^.[2!84)-[h8;Wf"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="FqbzEYmZP=6c$5+o@tRQ"><field name="NUM">4</field></shadow></value></block></value><statement name="DO4"><block type="basic_show_arrow" id="sa,qqEI8uD(LXA~CrVQd"><value name="i"><shadow type="device_arrow" id="7|#)iZp#aPNszp_JvV%/"><field name="arrow">ArrowNames.South</field></shadow></value></block></statement><value name="IF5"><block type="logic_compare" id="*NyjuJMi486|0{Il|=/Y"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="Ik$rKMn4p~4Ytrx@0xIQ"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="V1agPncV[oXY%NqEC!=6"><field name="NUM">5</field></shadow></value></block></value><statement name="DO5"><block type="basic_show_arrow" id="ex^*:P_$2nH#J91XiWad"><value name="i"><shadow type="device_arrow" id="|9)0r/A$JN7G7u5nn$W1"><field name="arrow">ArrowNames.SouthWest</field></shadow></value></block></statement><value name="IF6"><block type="logic_compare" id="s%hPpVD=|S_acTd]:QEf"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="8e|Dq|#RxIR5u3+j9QJ0"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field></block></value><value name="B"><shadow type="math_number" id="wg_fhs$`XBRN#C{hdXWy"><field name="NUM">6</field></shadow></value></block></value><statement name="DO6"><block type="basic_show_arrow" id="Sr!*q`NbBGxLRWllv44k"><value name="i"><shadow type="device_arrow" id="uiZ((9xZP=1lCQt5a{@f"><field name="arrow">ArrowNames.West</field></shadow></value></block></statement><statement name="ELSE"><block type="basic_show_arrow" id="+2(L3;D5h$Fsok|2D,*1"><value name="i"><shadow type="device_arrow" id="}h8Zf]:~S^zJt2.zM2pk"><field name="arrow">ArrowNames.NorthWest</field></shadow></value></block></statement><next><block type="controls_if" id="Nl.w?HP5QO3yl%{6j5G5"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="gYFBR`Dw!{4P4G}K~J`."><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="|1_fD%EfN|x]FZWg~3Ih"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field></block></value><value name="B"><shadow type="math_number" id="$b;KkuKMsmA7!*W_S?]C"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="ringbitcar_brake" id=",b+B{7!MSG:bg+_@t(LZ"></block></statement><statement name="ELSE"><block type="ringbitcar_forward" id="O?3|p-nMxsA?T;2q=QJ1"><next><block type="device_pause" id="jd#IkfRv#[SD:mC4xWjd"><value name="pause"><shadow type="timePicker" id="Oj?OO9sqJ~`tO;grl}Z."><field name="ms">500</field></shadow></value><next><block type="controls_if" id="kk_;qI2V*[4)G[oOtX($"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="3BlVuyY?{n_SIQZeLW.f"><field name="OP">EQ</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="$e-X=}IRbMugd{`r+r:;"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field></block></value><value name="B"><shadow type="math_number" id="*m,1UDTVVsLw/CY?pULS"><field name="NUM">-1</field></shadow></value></block></value><statement name="DO0"><block type="ringbitcar_left" id=",^l?)XF5W(0DG%-+g-}s"></block></statement><statement name="ELSE"><block type="ringbitcar_right" id="7qF`kt=E{-2SSkEKrv#m"></block></statement></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="?!D.hi@DO$Dv`w*mFwtz" x="40" y="281"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="_21wUnu(!Bo3Fi]2e3@u"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field><value name="VALUE"><shadow type="math_number" id="g{(ufTVFdINLR038`RX("><field name="NUM">-1</field></shadow></value></block></statement></block><block type="device_button_event" id="GX^{V%33K6K8tAqriEL%" x="47" y="448"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="variables_set" id="N=v*AxTze%76UCAwqJDj"><field name="VAR" id="qb+!-,RA*_kOQ9j)#-}:">direction</field><value name="VALUE"><shadow type="math_number" id="fpwF5ZgMltzuXDTBlX~y"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="4j0GbYIm0KoZ?xa%8fPI"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field><value name="VALUE"><shadow type="math_number" id="Yo~VyN`w{$%`|qCNd?p+"><field name="NUM">0</field></shadow></value></block></next></block></statement></block><block type="device_button_event" id="CHCWbg2@s{?/_HAbi8J@" x="48" y="727"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="O=Ya1s5h}9O`/Oqf6iY_"><field name="VAR" id="E5hB{q2,09X=cyU(Vjas">go</field><value name="VALUE"><shadow type="math_number" id=";L!SJ/Z8jm]}z(I-khgL"><field name="NUM">1</field></shadow></value></block></statement></block></xml>