-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 5.05 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="%;eQ.Pg/HeYgs7AUd.~?">distance</variable><variable id="pjk[R3Uk~9L,GJMDoA=^">aver</variable></variables><block type="device_forever" id="-j(Avi6HhI$c[EogzCQy" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="8jh2::gqY{%y9sNNsfVW"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field><value name="VALUE"><shadow type="math_number" id="H[?i#Uav/?at52I#7Cg2"><field name="NUM">0</field></shadow></value><next><block type="controls_repeat_ext" id="/Z#RY@HPZ,89MdrsQf]C"><comment pinned="false" h="78" w="362">x times must equal division after the loop For </comment><value name="TIMES"><shadow type="math_whole_number" id="|lX,P1X4Y[B={Ha]UUWQ"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="variables_set" id="6Fk-Ew0UEhvoUssd!zG$"><field name="VAR" id="%;eQ.Pg/HeYgs7AUd.~?">distance</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="sonar_ping" id="X1cFEL@^d`[}4Uu2u[8p"><field name="trig">DigitalPin.P0</field><field name="echo">DigitalPin.P1</field><field name="unit">PingUnit.Centimeters</field></block></value><next><block type="variables_set" id="2(#LFzuG+tcW8UWUCZfw"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="vTr)_nl!Vf`fagq5|01*"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="|r02NAo0ULN)y2NgK_s_"><field name="VAR" id="%;eQ.Pg/HeYgs7AUd.~?">distance</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="t1yB3IGF2HR//cuZdT3Z"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field></block></value></block></value></block></next></block></statement><next><block type="variables_set" id="*+_eFvu}XCpmFBqV_(|u"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="}Dy2;h!]qc-Hanw:jo.m"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="0kRa9E`_+U~uHdY2x5%z"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field></block></value><value name="B"><shadow type="math_number" id="rTSR3AN0AMDaK;zWXx1N"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="5GGoLYzbGMSsu?yOD0.y"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="0O@Cs9/-,!YW5t/ofx]U"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="DN8126bd8!$!0/oS)DGW"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="w09c{OnCS`AkET^AAfDS"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id="Vp}P-9yI*8N}o$g{kOj-"><field name="NUM">10</field></shadow></value><value name="B"><shadow type="math_number" id="bd0mLRI#O}uaN$Ph$HWS"><field name="NUM">6</field></shadow></value></block></value></block></value><next><block type="device_plot_bar_graph" id="^|b=1_)W]fsz}mD%cVq["><value name="value"><block type="variables_get" id="g6sGnb:nOm-Mrh-`lbR!"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field></block></value><value name="high"><shadow type="math_number" id="a,K;_]#:v5601yy4w=F0"><field name="NUM">100</field></shadow></value><next><block type="controls_if" id="aSF~1ZH/NLskOCB6uy-Y"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="UDzNgIW+OFW9M-b=b8C}"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Elltlphg|jTie8Y/Cx8s"><field name="VAR" id="pjk[R3Uk~9L,GJMDoA=^">aver</field></block></value><value name="B"><shadow type="math_number" id="JXm1s_2$-i^Ku{#=BM-Z"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="aA3X2Ga[c1Sw*RARqPui"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="([4~{TU$3p6oUWYO(C;E"><mutation min="0" max="1" label="Number" precision="0"/><field name="SLIDER">1</field></shadow></value></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="sSU8*Vh!o*p!P6R;Z:{v"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="^o{uai$txzvxm$Ve5e7K"><mutation min="0" max="1" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>