-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 12.9 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="WVcBjp0(2xY@z{Nbnh5G">running</variable><variable id="j)[P`D!:O)RZ.Co#:RB}">left</variable><variable id="D8~4F]6O1a/l:6kig7T*">right</variable><variable id="cJ8jJ1[xXM[E}viY)aLe">newLeft</variable><variable id="DP$xqe|~LqP:`x?L^k#y">newRight</variable><variable id="#@JE@enaW!Dqsl.zWyMb">speed</variable></variables><block type="pxt-on-start" id="aO!uosi3`npc]R=aFW?#" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="Inmn4[=CIOa)OXZpI}_7"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field><comment>in aer = 0 pe podea alb = 1, negru = 0</comment><value name="VALUE"><shadow type="math_number" id="eCTXA!h_gkjGGfm^n+%/"><field name="NUM">100</field></shadow></value><next><block type="variables_set" id="u0r~xpO2B,(z`^rYI/@7"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field><value name="VALUE"><shadow type="math_number" id="6?i/kze9kqyRdmma!zl7"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="O:mj{3!JgGaNt`wFGps/"><field name="VAR" id="DP$xqe|~LqP:`x?L^k#y">newRight</field><value name="VALUE"><shadow type="math_number" id="q{Y)uJAh#7kRCqnmAEMn"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="pFh;ZPab(^N%vh^oqbKk"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field><value name="VALUE"><shadow type="math_number" id="0fcR2nx1WsO%**tG17{f"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="Zm^~g_+=T%2sR0#-$_ur"><field name="VAR" id="cJ8jJ1[xXM[E}viY)aLe">newLeft</field><value name="VALUE"><shadow type="math_number" id="X0VMxalkIAc#$Y_+GoFV"><field name="NUM">-1</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="DVfvvP?D7$!ezoag1^S[" x="358" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="OzLFq3!uMF,d9R6Lu3H:"><field name="VAR" id="WVcBjp0(2xY@z{Nbnh5G">running</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_negate" id="w7xNq|C#4)TsasXrF*%I"><value name="BOOL"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="51x1,5nDk0pEM}r/7QJ/"><field name="VAR" id="WVcBjp0(2xY@z{Nbnh5G">running</field></block></value></block></value><next><block type="variables_set" id="X^HC$oG4^,KN-bhaDu3;"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field><value name="VALUE"><shadow type="math_number" id="D`,({%M#:5;T4t?NtOFb"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="bz;WAIS+hM{W0JlfR1EF"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field><value name="VALUE"><shadow type="math_number" id="H/I(4m}u`DJwUe3Kw93Z"><field name="NUM">-1</field></shadow></value></block></next></block></next></block></statement></block><block type="device_forever" id="o9n?qUz88~a5mHBAZ_[L" x="843" y="0"><statement name="HANDLER"><block type="controls_if" id="e%R/!d+qd.Qr.R+pv$)#"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="@H,HN4*j?I~w+#4%fdL#"><value name="BOOL"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="f|5`]pM3K@^K@X6Xta1{"><field name="VAR" id="WVcBjp0(2xY@z{Nbnh5G">running</field></block></value></block></value><statement name="DO0"><block type="motor_MotorRun" id="|v~e-Jqu6l(7GZex3p?N"><field name="index">maqueen.Motors.All</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax" id="^ICkO(F|]*!x3yf5-,$Z"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="typescript_statement" id="nC_[,]6Ym#G^BdCf7h1V" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="return;" numlines="1"></mutation></block></next></block></statement><next><block type="variables_set" id="*sx;qe]|OvLjms1fsw9c"><field name="VAR" id="cJ8jJ1[xXM[E}viY)aLe">newLeft</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="read_Patrol" id="YID5=iL.S!cr)i-0Va*^"><field name="patrol">maqueen.Patrol.PatrolLeft</field></block></value><next><block type="variables_set" id="FTbRRxLU#YlP5H~SpJ9X"><field name="VAR" id="DP$xqe|~LqP:`x?L^k#y">newRight</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="read_Patrol" id="p[8#o{xc,5h9b6JAA#7A"><field name="patrol">maqueen.Patrol.PatrolRight</field></block></value><next><block type="controls_if" id="M~apx227lqGCaA-35k;_"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="mhK#PQiLI5s4o2alWhMq"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="C;=_#u4LOgdBLRI$?y85"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="HpA[Pmi,aYR0.+-GfcHK"><field name="VAR" id="cJ8jJ1[xXM[E}viY)aLe">newLeft</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",igLwg4,xNXP6$Z,6}LP"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field></block></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="!Gudrp=Zw$O}?HtLV,R6"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="bARa@Kl?B?ARsD+]^!MF"><field name="VAR" id="DP$xqe|~LqP:`x?L^k#y">newRight</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="4ku!L)~uGMQXF4m:353#"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field></block></value></block></value></block></value><statement name="DO0"><block type="typescript_statement" id="1n.^S{{sk3n4H4_JK?SI" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="return;" numlines="1"></mutation></block></statement><statement name="ELSE"><block type="variables_set" id="=o/k$U[[P-~h8H{p3:o9"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field><comment>comment basic.showNumber(newLeft)</comment><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="-vi.OQPYYWem)(uvdrl5"><field name="VAR" id="cJ8jJ1[xXM[E}viY)aLe">newLeft</field></block></value><next><block type="variables_set" id="(6u,3s9]A*5n~P+CzvoE"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="M`dKp].+;a(|5:O^Fm]p"><field name="VAR" id="DP$xqe|~LqP:`x?L^k#y">newRight</field></block></value></block></next></block></statement><next><block type="controls_if" id="j/Cpq=^?S86hg@(z^9ae"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="m0.Q/(T$+G~OVC;t4A89"><field name="OP">OR</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="ip`pwHdqam%%7dp%Cr4s"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="C]2-tcwRyBDWg;3$%-}t"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="~^n@u3MI:TUS7ocQCc/r"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field></block></value><value name="B"><shadow type="math_number" id="VXXP/SJCnARRgL9A|s?X"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="K@^rv)=S=J8ce{7Ymp;I"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="MBW=($tNGJlJ$qS.#E2F"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field></block></value><value name="B"><shadow type="math_number" id="n20Gs/l1OhER7[G;rjzk"><field name="NUM">0</field></shadow></value></block></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="KPctTc6Tqsy3JSDcu2)U"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="e(jMVx@T-L{a`Wb^I6(x"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="dQQYu_PS^XN@AB$aX$]w"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field></block></value><value name="B"><shadow type="math_number" id="zt}oz6EK9Vi415{),PXU"><field name="NUM">1</field></shadow></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Clv{ZwL:U[Cp[R7=u~8l"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="`))6JMpfw{nKlw#A])FJ"><field name="VAR" id="D8~4F]6O1a/l:6kig7T*">right</field></block></value><value name="B"><shadow type="math_number" id="{5WaH5MfJAF3V83v/VB2"><field name="NUM">1</field></shadow></value></block></value></block></value></block></value><statement name="DO0"><block type="motor_MotorRun" id="[rD^]htsNIC*sI#nhG$="><field name="index">maqueen.Motors.All</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="255"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="rtgsBK#NQh^3H]yw;Pu,"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field></block></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="9Jn@3OP~4yZR-{N^Km1C"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="m~^4a1Ju|9AkDFESL4ly"><field name="VAR" id="j)[P`D!:O)RZ.Co#:RB}">left</field></block></value><value name="B"><shadow type="math_number" id="MQ%xizp{|+JM`~JlLpqL"><field name="NUM">0</field></shadow></value></block></value><statement name="DO1"><block type="motor_MotorRun" id="^yFTz}iy,NimCX0?X~Q^"><field name="index">maqueen.Motors.M1</field><field name="Dir">maqueen.Dir.CW</field><comment>left pe negru, right pe alb, deci deviez in dreapta, deci tr sa o iau in stanga</comment><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="255"/><field name="SLIDER">0</field></shadow><block type="math_arithmetic" id=".fJ%W2(LV1GY!*e.?a_G"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="K``(PNyDmF`+j@q|pGJ{"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field></block></value><value name="B"><shadow type="math_number" id="uoVZTpVpy}vV*gNDM4L?"><field name="NUM">4</field></shadow></value></block></value><next><block type="motor_MotorRun" id="S)bH|2q)i%Y.fvp+./ig"><field name="index">maqueen.Motors.M2</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="255"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="]K^,)[/+[BPrP7OnW:zw"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field></block></value></block></next></block></statement><statement name="ELSE"><block type="motor_MotorRun" id="1H.If3(;U|drsr(5#wB."><field name="index">maqueen.Motors.M1</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="255"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="lGZgpOCtRmme9zv@]pHz"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field></block></value><next><block type="motor_MotorRun" id="_r=-2}kuZS;Vo@mBAA)L"><field name="index">maqueen.Motors.M2</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="255"/><field name="SLIDER">0</field></shadow><block type="math_arithmetic" id="q~@yH{lMf_bwPyhm#u`?"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="*+4Y~kkYzEY|tOtGJf1%"><field name="VAR" id="#@JE@enaW!Dqsl.zWyMb">speed</field></block></value><value name="B"><shadow type="math_number" id="iptaNZeg(bHAmFO?k{4g"><field name="NUM">4</field></shadow></value></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></xml>