-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 3.56 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="y7Ct)-E[Y}q9A-rWnC%E">fut</variable></variables><block type="pxt-on-start" id="DPsV4L9}JJOgnJW?9~k}" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="]dYc/Q`{e#OOuz{23[_3"><field name="VAR" id="y7Ct)-E[Y}q9A-rWnC%E">fut</field><value name="VALUE"><shadow type="math_number" id="}bfGgKbzRRUmt/6ae3!D"><field name="NUM">0</field></shadow><block type="logic_boolean" id="+|3:nW7F_*pS5?Ja1tYs"><field name="BOOL">FALSE</field></block></value></block></statement></block><block type="device_forever" id="{/9O:uGm~+6}B1eoLPA[" x="474" y="236"><statement name="HANDLER"><block type="controls_if" id="Jy_~crAyz%#_k#,KPh#^"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean" id="q6w24]Dd|Ue|R-rjOdK0"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="Ur;u.lroUJ,oN)B@5AQ~"><field name="VAR" id="y7Ct)-E[Y}q9A-rWnC%E">fut</field></block></value><statement name="DO0"><block type="function_call" id="D!HDs4Zod*@If)iy5JL1"><mutation name="go straight" functionid="JY-kS!R;!B{~~T+B!.nu"/><next><block type="device_show_leds" id="..%{gc}j6j/|2hwZxx_@"><field name="LEDS">` . . # . . . . . # . # # # # # . . . # . . . # . . `</field></block></next></block></statement><statement name="ELSE"><block type="MotorRun" id="H_jc|Q2$_mZZc1Q;|kc."><value name="lspeed"><shadow type="math_number_minmax" id="`x[^QdnM^eG@3_*n-73G"><mutation min="-100" max="100" label="Lspeed" precision="0"/><field name="SLIDER">0</field></shadow></value><value name="rspeed"><shadow type="math_number_minmax" id="M[|M$1+{5ohdt)=UhN/8"><mutation min="-100" max="100" label="Rspeed" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_show_leds" id="lq{/!sZNY|jw3]v35m4v"><field name="LEDS">` . # # . . # . . # . # . . # . # . . # . . # # . . `</field></block></next></block></statement></block></statement></block><block type="input_on_sound" id="o[$/z]ZKU3.;;_/b_}Z=" x="46" y="377"><field name="sound">DetectedSound.Loud</field><statement name="HANDLER"><block type="variables_set" id="l2zwI5-,eN.X^i$MXIU*"><field name="VAR" id="y7Ct)-E[Y}q9A-rWnC%E">fut</field><value name="VALUE"><shadow type="math_number" id="Ku-Y+aLd,M+Xi-;KD{wy"><field name="NUM">0</field></shadow><block type="logic_negate" id="yR?}wvh}CiUmG#3n,GpL"><value name="BOOL"><block type="variables_get" id="cuy~(R}KB)^j?Z2OF7Vq"><field name="VAR" id="y7Ct)-E[Y}q9A-rWnC%E">fut</field></block></value></block></value></block></statement></block><block type="function_definition" id="q;KKXejeez3Z`zwC`QHV" x="861" y="345"><mutation name="go straight" functionid="JY-kS!R;!B{~~T+B!.nu"/><field name="function_name">go straight</field><statement name="STACK"><block type="MotorRun" id="IhPOZ=+ls`nl=%BwEKNm"><value name="lspeed"><shadow type="math_number_minmax" id="E57u?qeRlW`n_kBtw*wl"><mutation min="-100" max="100" label="Lspeed" precision="0"/><field name="SLIDER">43</field></shadow></value><value name="rspeed"><shadow type="math_number_minmax" id="PiVT23*!jvf5Brm:3vh:"><mutation min="-100" max="100" label="Rspeed" precision="0"/><field name="SLIDER">45</field></shadow></value></block></statement></block><block type="cutebot_servo" id="RohWC%!uC*e;Lbc@|8)*" disabled="true" x="-1" y="687"><field name="servo">cuteBot.ServoList.S1</field><value name="angle"><shadow type="protractorPicker" id="$c2xZ[T34{A/Efgr5ues"><field name="angle">90</field></shadow></value></block></xml>