Advertisement
KRITSADA

iBlockly+ATX2 Multiple Cross Line Tracing

Aug 14th, 2018
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 45.34 KB | None | 0 0
  1. <xml xmlns="http://www.w3.org/1999/xhtml">
  2.   <block type="inex_board" id="Hw+9+Rp3s:38-5-+|0O7" x="-372" y="-549">
  3.     <field name="Board">ATX2</field>
  4.   </block>
  5.   <block type="procedures_defnoreturn" id="Y(.)4#5{1I@Y,qNbYr.=" x="-1" y="-558">
  6.     <field name="NAME">FFF</field>
  7.     <comment pinned="false" h="80" w="160">Describe this function...</comment>
  8.     <statement name="STACK">
  9.       <block type="controls_whileUntil" id=";lstUyR4UGAe*~w2/x!4">
  10.         <field name="MODE">WHILE</field>
  11.         <value name="BOOL">
  12.           <block type="logic_boolean" id="WMs1Ja(wsN~.}B6bWH!u">
  13.             <field name="BOOL">TRUE</field>
  14.           </block>
  15.         </value>
  16.         <statement name="DO">
  17.           <block type="variables_set" id=")N!4k/Rj(X{Lug9f=H]H">
  18.             <field name="VAR">L</field>
  19.             <value name="VALUE">
  20.               <block type="sensor_analog_read" id="xP)Wfgz4D4ZgrP0BG8_W">
  21.                 <field name="PIN">0</field>
  22.               </block>
  23.             </value>
  24.             <next>
  25.               <block type="variables_set" id="}!ASw-dM4A8+S8rG[6Uq">
  26.                 <field name="VAR">R</field>
  27.                 <value name="VALUE">
  28.                   <block type="sensor_analog_read" id="({AFNqD^RVsZ/znSCk%t">
  29.                     <field name="PIN">1</field>
  30.                   </block>
  31.                 </value>
  32.                 <next>
  33.                   <block type="controls_if" id="DB!e^H3Es3dekH)sOT|y">
  34.                     <mutation elseif="3"></mutation>
  35.                     <value name="IF0">
  36.                       <block type="logic_operation" id="z1R9MQjCQ}IN@MffEx-7">
  37.                         <field name="OP">AND</field>
  38.                         <value name="A">
  39.                           <block type="logic_compare" id="Y[gbw-FQ!7b{5v(#v}{5">
  40.                             <field name="OP">GT</field>
  41.                             <value name="A">
  42.                               <block type="variables_get" id="Ifwy!jw09j,?(;oIE^(}">
  43.                                 <field name="VAR">L</field>
  44.                               </block>
  45.                             </value>
  46.                             <value name="B">
  47.                               <block type="variables_get" id="-oM,E/@bc0^X7Hs-SX5-">
  48.                                 <field name="VAR">RefL</field>
  49.                               </block>
  50.                             </value>
  51.                           </block>
  52.                         </value>
  53.                         <value name="B">
  54.                           <block type="logic_compare" id="^I,,Mbb!SogN%]S_mZZN">
  55.                             <field name="OP">GT</field>
  56.                             <value name="A">
  57.                               <block type="variables_get" id="Zny[4tRf~!ks-Kkb{i~P">
  58.                                 <field name="VAR">R</field>
  59.                               </block>
  60.                             </value>
  61.                             <value name="B">
  62.                               <block type="variables_get" id="3}}Kj^b^|8Wu]6kpYlDE">
  63.                                 <field name="VAR">RefR</field>
  64.                               </block>
  65.                             </value>
  66.                           </block>
  67.                         </value>
  68.                       </block>
  69.                     </value>
  70.                     <statement name="DO0">
  71.                       <block type="move" id="r5A-3JO93BTtQZG/rJP]">
  72.                         <field name="STAT">fd</field>
  73.                         <value name="speed">
  74.                           <block type="math_number" id="CHsgmbEoR`QCrPYi})4s">
  75.                             <field name="NUM">60</field>
  76.                           </block>
  77.                         </value>
  78.                       </block>
  79.                     </statement>
  80.                     <value name="IF1">
  81.                       <block type="logic_operation" id="_fp7Cj@0|9;8o@WD*wr-">
  82.                         <field name="OP">AND</field>
  83.                         <value name="A">
  84.                           <block type="logic_compare" id="NTdWfeGg5?kbO/w:zUl9">
  85.                             <field name="OP">LT</field>
  86.                             <value name="A">
  87.                               <block type="variables_get" id="!+Pu!QcWZe(R=ROO|2Zk">
  88.                                 <field name="VAR">L</field>
  89.                               </block>
  90.                             </value>
  91.                             <value name="B">
  92.                               <block type="variables_get" id="a#p/eM4vF[E}Q!{gtKe=">
  93.                                 <field name="VAR">RefL</field>
  94.                               </block>
  95.                             </value>
  96.                           </block>
  97.                         </value>
  98.                         <value name="B">
  99.                           <block type="logic_compare" id="b~.vd5|K)8UL]w*U=dE}">
  100.                             <field name="OP">GT</field>
  101.                             <value name="A">
  102.                               <block type="variables_get" id="ToU~pZ{Gy%d`Jg?(=W~z">
  103.                                 <field name="VAR">R</field>
  104.                               </block>
  105.                             </value>
  106.                             <value name="B">
  107.                               <block type="variables_get" id="XR4R|n3U@4(8@boL;~]6">
  108.                                 <field name="VAR">RefR</field>
  109.                               </block>
  110.                             </value>
  111.                           </block>
  112.                         </value>
  113.                       </block>
  114.                     </value>
  115.                     <statement name="DO1">
  116.                       <block type="spin" id="!gsc46e~:XP%:-JAS{c7">
  117.                         <field name="STAT">sl</field>
  118.                         <value name="speed">
  119.                           <block type="math_number" id="szkxP7lY#?h|myjzU8TX">
  120.                             <field name="NUM">50</field>
  121.                           </block>
  122.                         </value>
  123.                       </block>
  124.                     </statement>
  125.                     <value name="IF2">
  126.                       <block type="logic_operation" id="C,EDO;Q9zP^(`hupu{kw">
  127.                         <field name="OP">AND</field>
  128.                         <value name="A">
  129.                           <block type="logic_compare" id="X-XT[cUKtZ1Ces6@@PII">
  130.                             <field name="OP">GT</field>
  131.                             <value name="A">
  132.                               <block type="variables_get" id="TKdONP0gE2,!,Sq98o=M">
  133.                                 <field name="VAR">L</field>
  134.                               </block>
  135.                             </value>
  136.                             <value name="B">
  137.                               <block type="variables_get" id="#lrrnbivU{@7_kQ@|q_o">
  138.                                 <field name="VAR">RefL</field>
  139.                               </block>
  140.                             </value>
  141.                           </block>
  142.                         </value>
  143.                         <value name="B">
  144.                           <block type="logic_compare" id="0tr-TMwXi.gj8TDV6f`u">
  145.                             <field name="OP">LT</field>
  146.                             <value name="A">
  147.                               <block type="variables_get" id="EoAQBLxVDFyTZ1BK;U!;">
  148.                                 <field name="VAR">R</field>
  149.                               </block>
  150.                             </value>
  151.                             <value name="B">
  152.                               <block type="variables_get" id="NnP%~0.t^OF+?}4WPk=R">
  153.                                 <field name="VAR">RefR</field>
  154.                               </block>
  155.                             </value>
  156.                           </block>
  157.                         </value>
  158.                       </block>
  159.                     </value>
  160.                     <statement name="DO2">
  161.                       <block type="spin" id="@+k_7fzt{@Q~Y]efE-Iq">
  162.                         <field name="STAT">sr</field>
  163.                         <value name="speed">
  164.                           <block type="math_number" id="h%Nz}V1el+bn(X0%Gh]H">
  165.                             <field name="NUM">50</field>
  166.                           </block>
  167.                         </value>
  168.                       </block>
  169.                     </statement>
  170.                     <value name="IF3">
  171.                       <block type="logic_operation" id=";H_;SP;tLxNM9)r1R08R">
  172.                         <field name="OP">AND</field>
  173.                         <value name="A">
  174.                           <block type="logic_compare" id="9}Unf([8hT^e_09MnBbw">
  175.                             <field name="OP">LT</field>
  176.                             <value name="A">
  177.                               <block type="variables_get" id="d?G6++AL~(-zBV7wIm2+">
  178.                                 <field name="VAR">L</field>
  179.                               </block>
  180.                             </value>
  181.                             <value name="B">
  182.                               <block type="variables_get" id="gc/ZEbsMUuHFIo@kc@w!">
  183.                                 <field name="VAR">RefL</field>
  184.                               </block>
  185.                             </value>
  186.                           </block>
  187.                         </value>
  188.                         <value name="B">
  189.                           <block type="logic_compare" id="h!A)z*t#u*:_XiUo{!S_">
  190.                             <field name="OP">LT</field>
  191.                             <value name="A">
  192.                               <block type="variables_get" id="NH@r9ZS`yCDO`Cj?S:~+">
  193.                                 <field name="VAR">R</field>
  194.                               </block>
  195.                             </value>
  196.                             <value name="B">
  197.                               <block type="variables_get" id=":yn9C[L97A,iN`5k`B,U">
  198.                                 <field name="VAR">RefR</field>
  199.                               </block>
  200.                             </value>
  201.                           </block>
  202.                         </value>
  203.                       </block>
  204.                     </value>
  205.                     <statement name="DO3">
  206.                       <block type="move" id="eV/]l.xk0lS]7{2j,YXt">
  207.                         <field name="STAT">fd</field>
  208.                         <value name="speed">
  209.                           <block type="math_number" id="/qT8McRmGA}._z5Qp;@T">
  210.                             <field name="NUM">60</field>
  211.                           </block>
  212.                         </value>
  213.                         <next>
  214.                           <block type="time_delay" id="wU}4]aNyZeK9XMaPaaQv">
  215.                             <value name="DELAY_TIME_MILI">
  216.                               <block type="math_number" id="aT.f~UzvzcC/Xr)R2wmM">
  217.                                 <field name="NUM">200</field>
  218.                               </block>
  219.                             </value>
  220.                             <next>
  221.                               <block type="controls_flow_statements" id="XyH|KC93NK1JRfD{P=BR">
  222.                                 <field name="FLOW">BREAK</field>
  223.                               </block>
  224.                             </next>
  225.                           </block>
  226.                         </next>
  227.                       </block>
  228.                     </statement>
  229.                   </block>
  230.                 </next>
  231.               </block>
  232.             </next>
  233.           </block>
  234.         </statement>
  235.       </block>
  236.     </statement>
  237.   </block>
  238.   <block type="switch_ok" id="MoLR`anbUwv@#Erb+sd)" x="-368" y="-501"></block>
  239.   <block type="procedures_defnoreturn" id="f8!.skaO;-{PE]rXPT^-" x="666" y="-526">
  240.     <field name="NAME">LLL</field>
  241.     <comment pinned="false" h="80" w="160">Describe this function...</comment>
  242.     <statement name="STACK">
  243.       <block type="controls_whileUntil" id="-W{HlGK,.Az7k1Tao]2m">
  244.         <field name="MODE">WHILE</field>
  245.         <value name="BOOL">
  246.           <block type="logic_boolean" id="{(|#H4xQQ`)02zx@4W-6">
  247.             <field name="BOOL">TRUE</field>
  248.           </block>
  249.         </value>
  250.         <statement name="DO">
  251.           <block type="variables_set" id="3|o.eNzaEG}NzU,a`%_C">
  252.             <field name="VAR">L</field>
  253.             <value name="VALUE">
  254.               <block type="sensor_analog_read" id="Qp.DtYU{Z},h)mewE`Ni">
  255.                 <field name="PIN">0</field>
  256.               </block>
  257.             </value>
  258.             <next>
  259.               <block type="variables_set" id="YTEk#[k?~2jW2/P0#Xq5">
  260.                 <field name="VAR">R</field>
  261.                 <value name="VALUE">
  262.                   <block type="sensor_analog_read" id=").g.FtQtXVG;e5OE2kqi">
  263.                     <field name="PIN">1</field>
  264.                   </block>
  265.                 </value>
  266.                 <next>
  267.                   <block type="controls_if" id="Yn^k?OrK?#yWveJ]vPqo">
  268.                     <mutation elseif="3"></mutation>
  269.                     <value name="IF0">
  270.                       <block type="logic_operation" id="+0saS}Dj=ygL9rDyOKj@">
  271.                         <field name="OP">AND</field>
  272.                         <value name="A">
  273.                           <block type="logic_compare" id="g1/Q{aKQ@,pGKJ@m.DSY">
  274.                             <field name="OP">GT</field>
  275.                             <value name="A">
  276.                               <block type="variables_get" id="hCsrvAH5V9-Hg4Cl|RK6">
  277.                                 <field name="VAR">L</field>
  278.                               </block>
  279.                             </value>
  280.                             <value name="B">
  281.                               <block type="variables_get" id="*_1#IW^yyz|If_Qu*s0!">
  282.                                 <field name="VAR">RefL</field>
  283.                               </block>
  284.                             </value>
  285.                           </block>
  286.                         </value>
  287.                         <value name="B">
  288.                           <block type="logic_compare" id="{=Y_fR3_mLg1;Lv,L.:%">
  289.                             <field name="OP">GT</field>
  290.                             <value name="A">
  291.                               <block type="variables_get" id="KlE|EK%/|[nS]ELyV38q">
  292.                                 <field name="VAR">R</field>
  293.                               </block>
  294.                             </value>
  295.                             <value name="B">
  296.                               <block type="variables_get" id="u;s(yE))jJqvOATyCusb">
  297.                                 <field name="VAR">RefR</field>
  298.                               </block>
  299.                             </value>
  300.                           </block>
  301.                         </value>
  302.                       </block>
  303.                     </value>
  304.                     <statement name="DO0">
  305.                       <block type="move" id="1Eu.SS}]t=NLIkb1F}YO">
  306.                         <field name="STAT">fd</field>
  307.                         <value name="speed">
  308.                           <block type="math_number" id="YcvnwbjR/[Evl7RE#-S*">
  309.                             <field name="NUM">60</field>
  310.                           </block>
  311.                         </value>
  312.                       </block>
  313.                     </statement>
  314.                     <value name="IF1">
  315.                       <block type="logic_operation" id="}v.}[%5:mQh.(Q*Y8`g-">
  316.                         <field name="OP">AND</field>
  317.                         <value name="A">
  318.                           <block type="logic_compare" id="cHkTh|w68Sf238!pp)=l">
  319.                             <field name="OP">LT</field>
  320.                             <value name="A">
  321.                               <block type="variables_get" id="a^wdP/v0U]]LCC^sLRze">
  322.                                 <field name="VAR">L</field>
  323.                               </block>
  324.                             </value>
  325.                             <value name="B">
  326.                               <block type="variables_get" id="%[,0_1J]3ybScE(efUO(">
  327.                                 <field name="VAR">RefL</field>
  328.                               </block>
  329.                             </value>
  330.                           </block>
  331.                         </value>
  332.                         <value name="B">
  333.                           <block type="logic_compare" id="g^^Dnl)11zq?q2oi%2/~">
  334.                             <field name="OP">GT</field>
  335.                             <value name="A">
  336.                               <block type="variables_get" id="]t@4fX=0K-CQ:U[oM2kI">
  337.                                 <field name="VAR">R</field>
  338.                               </block>
  339.                             </value>
  340.                             <value name="B">
  341.                               <block type="variables_get" id="k#]lA2Q}1z!(%*!s.r=I">
  342.                                 <field name="VAR">RefR</field>
  343.                               </block>
  344.                             </value>
  345.                           </block>
  346.                         </value>
  347.                       </block>
  348.                     </value>
  349.                     <statement name="DO1">
  350.                       <block type="spin" id=":3y.7MkPuSL8mLyIXmWZ">
  351.                         <field name="STAT">sl</field>
  352.                         <value name="speed">
  353.                           <block type="math_number" id="uctdb9Mp%^.NPpl1,vTQ">
  354.                             <field name="NUM">50</field>
  355.                           </block>
  356.                         </value>
  357.                       </block>
  358.                     </statement>
  359.                     <value name="IF2">
  360.                       <block type="logic_operation" id="Dc8dKcBdr_]o(@|op+va">
  361.                         <field name="OP">AND</field>
  362.                         <value name="A">
  363.                           <block type="logic_compare" id=")*%,CjkSk,~(VDzyKpU?">
  364.                             <field name="OP">GT</field>
  365.                             <value name="A">
  366.                               <block type="variables_get" id="tnB4/huiKy~+=eVqxm{d">
  367.                                 <field name="VAR">L</field>
  368.                               </block>
  369.                             </value>
  370.                             <value name="B">
  371.                               <block type="variables_get" id="/rILXp8vV6+BN`#T+`Ew">
  372.                                 <field name="VAR">RefL</field>
  373.                               </block>
  374.                             </value>
  375.                           </block>
  376.                         </value>
  377.                         <value name="B">
  378.                           <block type="logic_compare" id="E8CTAT3IGdeu3E#KqQw`">
  379.                             <field name="OP">LT</field>
  380.                             <value name="A">
  381.                               <block type="variables_get" id="=TZ@D/2Dw^imT!]tN}ia">
  382.                                 <field name="VAR">R</field>
  383.                               </block>
  384.                             </value>
  385.                             <value name="B">
  386.                               <block type="variables_get" id="F:_{6hISOwh{gK`o0y^Q">
  387.                                 <field name="VAR">RefR</field>
  388.                               </block>
  389.                             </value>
  390.                           </block>
  391.                         </value>
  392.                       </block>
  393.                     </value>
  394.                     <statement name="DO2">
  395.                       <block type="spin" id="@;n0fXhV~::9hXHv4Owz">
  396.                         <field name="STAT">sr</field>
  397.                         <value name="speed">
  398.                           <block type="math_number" id="~Z9F.i92:A/ENr3:`6+P">
  399.                             <field name="NUM">50</field>
  400.                           </block>
  401.                         </value>
  402.                       </block>
  403.                     </statement>
  404.                     <value name="IF3">
  405.                       <block type="logic_operation" id="pR|HzkPvn]E}NG(a-W}h">
  406.                         <field name="OP">AND</field>
  407.                         <value name="A">
  408.                           <block type="logic_compare" id="JP|C%Tq`1ciO}cEW/8,}">
  409.                             <field name="OP">LT</field>
  410.                             <value name="A">
  411.                               <block type="variables_get" id="A(7a9M6y~f{{|Y{5yxMK">
  412.                                 <field name="VAR">L</field>
  413.                               </block>
  414.                             </value>
  415.                             <value name="B">
  416.                               <block type="variables_get" id="t8KLyQ4Za)DAy78aM)3U">
  417.                                 <field name="VAR">RefL</field>
  418.                               </block>
  419.                             </value>
  420.                           </block>
  421.                         </value>
  422.                         <value name="B">
  423.                           <block type="logic_compare" id="(m-Hbkh).9_^[)yYL%JI">
  424.                             <field name="OP">LT</field>
  425.                             <value name="A">
  426.                               <block type="variables_get" id="E7[bq,)6{WA+vK!RqAL[">
  427.                                 <field name="VAR">R</field>
  428.                               </block>
  429.                             </value>
  430.                             <value name="B">
  431.                               <block type="variables_get" id="7fYJqk!He/2~@.?U1O~#">
  432.                                 <field name="VAR">RefR</field>
  433.                               </block>
  434.                             </value>
  435.                           </block>
  436.                         </value>
  437.                       </block>
  438.                     </value>
  439.                     <statement name="DO3">
  440.                       <block type="move" id="|DV.6w,4JC8Z:Yvq@/S4">
  441.                         <field name="STAT">fd</field>
  442.                         <value name="speed">
  443.                           <block type="math_number" id="Yt0a}W|[%gWs-Kk*!Pib">
  444.                             <field name="NUM">60</field>
  445.                           </block>
  446.                         </value>
  447.                         <next>
  448.                           <block type="time_delay" id="(nD9U0Cl~ah.w6l~;hsi">
  449.                             <value name="DELAY_TIME_MILI">
  450.                               <block type="math_number" id="FcED)G~r+.|8+bSDm2iM">
  451.                                 <field name="NUM">200</field>
  452.                               </block>
  453.                             </value>
  454.                             <next>
  455.                               <block type="controls_whileUntil" id="LwBTtH81m3Q2bjPrpkjP">
  456.                                 <field name="MODE">WHILE</field>
  457.                                 <value name="BOOL">
  458.                                   <block type="logic_compare" id="wKY/R-LWwJf1AN*/%0TF">
  459.                                     <field name="OP">GT</field>
  460.                                     <value name="A">
  461.                                       <block type="sensor_analog_read" id="CfCLE73LVO{6xZ)N/xJ_">
  462.                                         <field name="PIN">0</field>
  463.                                       </block>
  464.                                     </value>
  465.                                     <value name="B">
  466.                                       <block type="math_number" id="~2).7]cp1.s3ugyUW-dY">
  467.                                         <field name="NUM">500</field>
  468.                                       </block>
  469.                                     </value>
  470.                                   </block>
  471.                                 </value>
  472.                                 <statement name="DO">
  473.                                   <block type="spin" id="49;PR+;:nu@^bFU~3+H?">
  474.                                     <field name="STAT">sl</field>
  475.                                     <value name="speed">
  476.                                       <block type="math_number" id="{G}+hgQUz,_Y0z.nssHX">
  477.                                         <field name="NUM">50</field>
  478.                                       </block>
  479.                                     </value>
  480.                                   </block>
  481.                                 </statement>
  482.                                 <next>
  483.                                   <block type="controls_whileUntil" id="@b7^}fiyBNLm2c1Zyi~*">
  484.                                     <field name="MODE">WHILE</field>
  485.                                     <value name="BOOL">
  486.                                       <block type="logic_compare" id="fb]]5o@EL+Rr_gvhqqp%">
  487.                                         <field name="OP">LT</field>
  488.                                         <value name="A">
  489.                                           <block type="sensor_analog_read" id="nM77NX9MA!K4/0k7;P)E">
  490.                                             <field name="PIN">0</field>
  491.                                           </block>
  492.                                         </value>
  493.                                         <value name="B">
  494.                                           <block type="math_number" id="8CtR*C/D|XEK!s^v]Fn%">
  495.                                             <field name="NUM">500</field>
  496.                                           </block>
  497.                                         </value>
  498.                                       </block>
  499.                                     </value>
  500.                                     <statement name="DO">
  501.                                       <block type="spin" id="sC5GUW]w9*|{}5A-La%4">
  502.                                         <field name="STAT">sl</field>
  503.                                         <value name="speed">
  504.                                           <block type="math_number" id="`UCage6iY]cKB%NwWiwD">
  505.                                             <field name="NUM">50</field>
  506.                                           </block>
  507.                                         </value>
  508.                                       </block>
  509.                                     </statement>
  510.                                     <next>
  511.                                       <block type="controls_flow_statements" id="}T@+l6D(no1i,/tJ:#KO">
  512.                                         <field name="FLOW">BREAK</field>
  513.                                       </block>
  514.                                     </next>
  515.                                   </block>
  516.                                 </next>
  517.                               </block>
  518.                             </next>
  519.                           </block>
  520.                         </next>
  521.                       </block>
  522.                     </statement>
  523.                   </block>
  524.                 </next>
  525.               </block>
  526.             </next>
  527.           </block>
  528.         </statement>
  529.       </block>
  530.     </statement>
  531.   </block>
  532.   <block type="arduino_functions" id="vRC^bTf:yaCMQ9K8+HJb" x="-371" y="-447">
  533.     <statement name="SETUP_FUNC">
  534.       <block type="variables_set" id="zKo`S#]jj|r,l5uJ_xP7">
  535.         <field name="VAR">RefL</field>
  536.         <value name="VALUE">
  537.           <block type="math_number" id="phFWxm:EC_?e{x@R6(c=">
  538.             <field name="NUM">400</field>
  539.           </block>
  540.         </value>
  541.         <next>
  542.           <block type="variables_set" id="#NNNC4wbJ[N?VDtA|6~e">
  543.             <field name="VAR">RefR</field>
  544.             <value name="VALUE">
  545.               <block type="math_number" id="(0gzH0wlhkkx/638khX;">
  546.                 <field name="NUM">450</field>
  547.               </block>
  548.             </value>
  549.             <next>
  550.               <block type="variables_set" id="d:KZ68-mDzy3Vqc?5s}m">
  551.                 <field name="VAR">L</field>
  552.                 <value name="VALUE">
  553.                   <block type="math_number" id="!y}lUI;O0Jdx9D49]zb5">
  554.                     <field name="NUM">0</field>
  555.                   </block>
  556.                 </value>
  557.                 <next>
  558.                   <block type="variables_set" id="odz5Ok7td.=:;`@GC4UM">
  559.                     <field name="VAR">R</field>
  560.                     <value name="VALUE">
  561.                       <block type="math_number" id="qIr8nv;lj_HGLeHN?D@?">
  562.                         <field name="NUM">0</field>
  563.                       </block>
  564.                     </value>
  565.                     <next>
  566.                       <block type="glcd_set_text_size" id="/V.xAT;*9r*Eh)`e5HdE">
  567.                         <field name="SIZE">2</field>
  568.                         <next>
  569.                           <block type="glcd_text" id="qh,%_r@/,8etR;QBF2Pg">
  570.                             <field name="ROW">1</field>
  571.                             <field name="COLUM">1</field>
  572.                             <field name="TXT">Moving...</field>
  573.                             <next>
  574.                               <block type="procedures_callnoreturn" id="jf^{yoO8#5_gzLj%1a_N">
  575.                                 <mutation name="FFF"></mutation>
  576.                                 <next>
  577.                                   <block type="procedures_callnoreturn" id="~pwYF0gT*tV7I_q|qBB:">
  578.                                     <mutation name="LLL"></mutation>
  579.                                     <next>
  580.                                       <block type="procedures_callnoreturn" id="RVio[SdAe.?lJBUj3lO3">
  581.                                         <mutation name="RRR"></mutation>
  582.                                         <next>
  583.                                           <block type="procedures_callnoreturn" id="SDQ|mufYY:;Zhy^cYk8O">
  584.                                             <mutation name="FFF"></mutation>
  585.                                             <next>
  586.                                               <block type="procedures_callnoreturn" id="fpqxDxaiD5Ke+7IV]#x-">
  587.                                                 <mutation name="RRR"></mutation>
  588.                                                 <next>
  589.                                                   <block type="motor_stop" id="w+QzmDC%ucuv3SgN+=3v"></block>
  590.                                                 </next>
  591.                                               </block>
  592.                                             </next>
  593.                                           </block>
  594.                                         </next>
  595.                                       </block>
  596.                                     </next>
  597.                                   </block>
  598.                                 </next>
  599.                               </block>
  600.                             </next>
  601.                           </block>
  602.                         </next>
  603.                       </block>
  604.                     </next>
  605.                   </block>
  606.                 </next>
  607.               </block>
  608.             </next>
  609.           </block>
  610.         </next>
  611.       </block>
  612.     </statement>
  613.   </block>
  614.   <block type="procedures_defnoreturn" id="^C,3Cv@eSn=*XRo}EIcj" x="-26" y="23">
  615.     <field name="NAME">RRR</field>
  616.     <comment pinned="false" h="80" w="160">Describe this function...</comment>
  617.     <statement name="STACK">
  618.       <block type="controls_whileUntil" id="G:4X#@8p{HPG@jzCoxZE">
  619.         <field name="MODE">WHILE</field>
  620.         <value name="BOOL">
  621.           <block type="logic_boolean" id="bvRtx@M~s;u5A`m2,g!`">
  622.             <field name="BOOL">TRUE</field>
  623.           </block>
  624.         </value>
  625.         <statement name="DO">
  626.           <block type="variables_set" id="4}l|)R/Px5bm^WZklR-{">
  627.             <field name="VAR">L</field>
  628.             <value name="VALUE">
  629.               <block type="sensor_analog_read" id="5^g!z{aO__eD)e@~J7|}">
  630.                 <field name="PIN">0</field>
  631.               </block>
  632.             </value>
  633.             <next>
  634.               <block type="variables_set" id="o`Lm!RtNLV}P-Au%8H%+">
  635.                 <field name="VAR">R</field>
  636.                 <value name="VALUE">
  637.                   <block type="sensor_analog_read" id="T!!HAC%Qw9pIXKQiCkvW">
  638.                     <field name="PIN">1</field>
  639.                   </block>
  640.                 </value>
  641.                 <next>
  642.                   <block type="controls_if" id="OcUI-[8yuICQp0SuohOx">
  643.                     <mutation elseif="3"></mutation>
  644.                     <value name="IF0">
  645.                       <block type="logic_operation" id="Nek!}^kxk2*_OG-X-7(l">
  646.                         <field name="OP">AND</field>
  647.                         <value name="A">
  648.                           <block type="logic_compare" id="zlgiY]Px3=9V[BHM}c[}">
  649.                             <field name="OP">GT</field>
  650.                             <value name="A">
  651.                               <block type="variables_get" id="!ugnQG5igPH9Q?^Lt+8k">
  652.                                 <field name="VAR">L</field>
  653.                               </block>
  654.                             </value>
  655.                             <value name="B">
  656.                               <block type="variables_get" id="V_1o-,cKa9L/10nb42wb">
  657.                                 <field name="VAR">RefL</field>
  658.                               </block>
  659.                             </value>
  660.                           </block>
  661.                         </value>
  662.                         <value name="B">
  663.                           <block type="logic_compare" id="^Iwjh03T~}!+R%o?ULEv">
  664.                             <field name="OP">GT</field>
  665.                             <value name="A">
  666.                               <block type="variables_get" id="],oW3@=0c:Qi-j7i/JPV">
  667.                                 <field name="VAR">R</field>
  668.                               </block>
  669.                             </value>
  670.                             <value name="B">
  671.                               <block type="variables_get" id="%W^Ckqq:gc{?@aS6ff91">
  672.                                 <field name="VAR">RefR</field>
  673.                               </block>
  674.                             </value>
  675.                           </block>
  676.                         </value>
  677.                       </block>
  678.                     </value>
  679.                     <statement name="DO0">
  680.                       <block type="move" id="]/BJo3(RBxT2k},/4i+u">
  681.                         <field name="STAT">fd</field>
  682.                         <value name="speed">
  683.                           <block type="math_number" id="IWo#B;z.R;Hk[k(hL;,@">
  684.                             <field name="NUM">60</field>
  685.                           </block>
  686.                         </value>
  687.                       </block>
  688.                     </statement>
  689.                     <value name="IF1">
  690.                       <block type="logic_operation" id="f9(c9diU4hRokc~NCL;d">
  691.                         <field name="OP">AND</field>
  692.                         <value name="A">
  693.                           <block type="logic_compare" id="vHu]Xh^I=P?c(METH46r">
  694.                             <field name="OP">LT</field>
  695.                             <value name="A">
  696.                               <block type="variables_get" id="9aE}.WJlSlQl,{?-5*As">
  697.                                 <field name="VAR">L</field>
  698.                               </block>
  699.                             </value>
  700.                             <value name="B">
  701.                               <block type="variables_get" id="icU@fV=Z|v/%P1EmmzcZ">
  702.                                 <field name="VAR">RefL</field>
  703.                               </block>
  704.                             </value>
  705.                           </block>
  706.                         </value>
  707.                         <value name="B">
  708.                           <block type="logic_compare" id="gxz%ptl_J.sh!I}U(Wei">
  709.                             <field name="OP">GT</field>
  710.                             <value name="A">
  711.                               <block type="variables_get" id="Az-oXZFBjQlIJ8jxf9NU">
  712.                                 <field name="VAR">R</field>
  713.                               </block>
  714.                             </value>
  715.                             <value name="B">
  716.                               <block type="variables_get" id="oN4JK#0Uy.+ITB(r/DQH">
  717.                                 <field name="VAR">RefR</field>
  718.                               </block>
  719.                             </value>
  720.                           </block>
  721.                         </value>
  722.                       </block>
  723.                     </value>
  724.                     <statement name="DO1">
  725.                       <block type="spin" id="]qP^^0MY=D:b*qIqbW~~">
  726.                         <field name="STAT">sl</field>
  727.                         <value name="speed">
  728.                           <block type="math_number" id="YBMNY/3Oy@A1QONC+qZm">
  729.                             <field name="NUM">50</field>
  730.                           </block>
  731.                         </value>
  732.                       </block>
  733.                     </statement>
  734.                     <value name="IF2">
  735.                       <block type="logic_operation" id="V%]^j)d]X(TkGT-rS8A5">
  736.                         <field name="OP">AND</field>
  737.                         <value name="A">
  738.                           <block type="logic_compare" id="`H8U_*|;(@lA9;-O?w;)">
  739.                             <field name="OP">GT</field>
  740.                             <value name="A">
  741.                               <block type="variables_get" id="I]fnR}B-SgD#!:t1Jz(1">
  742.                                 <field name="VAR">L</field>
  743.                               </block>
  744.                             </value>
  745.                             <value name="B">
  746.                               <block type="variables_get" id="L%rrSU-f9k~o@5V-k~`~">
  747.                                 <field name="VAR">RefL</field>
  748.                               </block>
  749.                             </value>
  750.                           </block>
  751.                         </value>
  752.                         <value name="B">
  753.                           <block type="logic_compare" id="CFDRy+6w5:MuYzVyr43W">
  754.                             <field name="OP">LT</field>
  755.                             <value name="A">
  756.                               <block type="variables_get" id="cSm8dsy,_9KF6gof`dz)">
  757.                                 <field name="VAR">R</field>
  758.                               </block>
  759.                             </value>
  760.                             <value name="B">
  761.                               <block type="variables_get" id="=XkrKzQla)=RUTL5ykzM">
  762.                                 <field name="VAR">RefR</field>
  763.                               </block>
  764.                             </value>
  765.                           </block>
  766.                         </value>
  767.                       </block>
  768.                     </value>
  769.                     <statement name="DO2">
  770.                       <block type="spin" id="doPM1uAeIF}EXR*!XYbo">
  771.                         <field name="STAT">sr</field>
  772.                         <value name="speed">
  773.                           <block type="math_number" id="f#1LZah(|lvPhEl+W_v^">
  774.                             <field name="NUM">50</field>
  775.                           </block>
  776.                         </value>
  777.                       </block>
  778.                     </statement>
  779.                     <value name="IF3">
  780.                       <block type="logic_operation" id="D|u5?u;Ysl7,BY|3)a]+">
  781.                         <field name="OP">AND</field>
  782.                         <value name="A">
  783.                           <block type="logic_compare" id="*!TUi~%yZ,)!^h8]3Iqu">
  784.                             <field name="OP">LT</field>
  785.                             <value name="A">
  786.                               <block type="variables_get" id="VhKEW(HSx:o~mzwL+/,a">
  787.                                 <field name="VAR">L</field>
  788.                               </block>
  789.                             </value>
  790.                             <value name="B">
  791.                               <block type="variables_get" id="PI%8/V,@-K#k]GSW_y8X">
  792.                                 <field name="VAR">RefL</field>
  793.                               </block>
  794.                             </value>
  795.                           </block>
  796.                         </value>
  797.                         <value name="B">
  798.                           <block type="logic_compare" id="K?h@v;:WoV:x?m]c5xPS">
  799.                             <field name="OP">LT</field>
  800.                             <value name="A">
  801.                               <block type="variables_get" id="ES/`E5|M?((Dhfk*Jbaw">
  802.                                 <field name="VAR">R</field>
  803.                               </block>
  804.                             </value>
  805.                             <value name="B">
  806.                               <block type="variables_get" id="`kP{JA4@i)5Dy]4MBq5z">
  807.                                 <field name="VAR">RefR</field>
  808.                               </block>
  809.                             </value>
  810.                           </block>
  811.                         </value>
  812.                       </block>
  813.                     </value>
  814.                     <statement name="DO3">
  815.                       <block type="move" id="]NB(BOG1MoI9=[xCeShm">
  816.                         <field name="STAT">fd</field>
  817.                         <value name="speed">
  818.                           <block type="math_number" id="beo.;n*]/~SjT~Di#0H?">
  819.                             <field name="NUM">60</field>
  820.                           </block>
  821.                         </value>
  822.                         <next>
  823.                           <block type="time_delay" id="#lq#pF?t(t@1|lN)S~Re">
  824.                             <value name="DELAY_TIME_MILI">
  825.                               <block type="math_number" id="4r+6da/_6rwqeT`7vKlX">
  826.                                 <field name="NUM">200</field>
  827.                               </block>
  828.                             </value>
  829.                             <next>
  830.                               <block type="controls_whileUntil" id="?(|!JMYzD.Yz5nXB~AFi">
  831.                                 <field name="MODE">WHILE</field>
  832.                                 <value name="BOOL">
  833.                                   <block type="logic_compare" id="f2n:EXF7z*RtszK(0%#5">
  834.                                     <field name="OP">GT</field>
  835.                                     <value name="A">
  836.                                       <block type="sensor_analog_read" id="dxl6EZEt|`+y{8c+xp4f">
  837.                                         <field name="PIN">1</field>
  838.                                       </block>
  839.                                     </value>
  840.                                     <value name="B">
  841.                                       <block type="math_number" id="5~[qt8Hn)e[IGvVet`]B">
  842.                                         <field name="NUM">500</field>
  843.                                       </block>
  844.                                     </value>
  845.                                   </block>
  846.                                 </value>
  847.                                 <statement name="DO">
  848.                                   <block type="spin" id="1Y(o6waKG(@MA%B#MlI3">
  849.                                     <field name="STAT">sr</field>
  850.                                     <value name="speed">
  851.                                       <block type="math_number" id="S!-4TPb}E=6o+@Povrnu">
  852.                                         <field name="NUM">50</field>
  853.                                       </block>
  854.                                     </value>
  855.                                   </block>
  856.                                 </statement>
  857.                                 <next>
  858.                                   <block type="controls_whileUntil" id="rjm/,DB66[V{U!IZ6t86">
  859.                                     <field name="MODE">WHILE</field>
  860.                                     <value name="BOOL">
  861.                                       <block type="logic_compare" id="9WSb#v}82m}HCU9WJ(iZ">
  862.                                         <field name="OP">LT</field>
  863.                                         <value name="A">
  864.                                           <block type="sensor_analog_read" id="4xhy-9%-Z}hW@pdL_L(F">
  865.                                             <field name="PIN">1</field>
  866.                                           </block>
  867.                                         </value>
  868.                                         <value name="B">
  869.                                           <block type="math_number" id="mz?j:@;3#+@vUzF!O1d!">
  870.                                             <field name="NUM">500</field>
  871.                                           </block>
  872.                                         </value>
  873.                                       </block>
  874.                                     </value>
  875.                                     <statement name="DO">
  876.                                       <block type="spin" id="eX.7{pX)ck*lNPXbv:1s">
  877.                                         <field name="STAT">sr</field>
  878.                                         <value name="speed">
  879.                                           <block type="math_number" id="8v(#Ddj,)+_:C^t09)*M">
  880.                                             <field name="NUM">50</field>
  881.                                           </block>
  882.                                         </value>
  883.                                       </block>
  884.                                     </statement>
  885.                                     <next>
  886.                                       <block type="controls_flow_statements" id="ak_yk)ih7rjHtmS2%cuj">
  887.                                         <field name="FLOW">BREAK</field>
  888.                                       </block>
  889.                                     </next>
  890.                                   </block>
  891.                                 </next>
  892.                               </block>
  893.                             </next>
  894.                           </block>
  895.                         </next>
  896.                       </block>
  897.                     </statement>
  898.                   </block>
  899.                 </next>
  900.               </block>
  901.             </next>
  902.           </block>
  903.         </statement>
  904.       </block>
  905.     </statement>
  906.   </block>
  907. </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement