+<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</variable></variables><block type="mh_init" id="P1;=b)_RTm{~mHF@*rUC" x="133" y="-9"><statement name="DO"><block type="ui_show_value" id="d%pX_X18X6V=bvRB=|,x"><field name="LABEL">Status</field><field name="STYLE">FORMAT_SIMPLE</field><value name="VALUE"><shadow type="text" id="OF~RckSNI_Yo}%|`XCR)"><field name="TEXT">Replace me</field></shadow><block type="text" id="n*YJw{j04CSNIsRy-}$:"><field name="TEXT">Initialized</field></block></value><next><block type="variables_set" id="g_6rk=,1bzHvv|e;u4KT"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field><value name="VALUE"><block type="math_number" id="5(tA_}rZ2EiP,-;N2ztI"><field name="NUM">0</field></block></value><next><block type="mh_set_motor_speed" id="v`jy$6Grd?e6%s6V!N4f"><value name="PORT"><shadow type="mh_port" id="!qy#ao^6L6,f3Q;5ecTB"><field name="PORT">PORT1</field></shadow></value><value name="VALUE"><block type="math_number" id="?h]t~WRW9Vh`:__$*2tb"><field name="NUM">0</field></block></value><next><block type="mh_startthread" id="yCUFhTJyuPV?SXqB(Dw."><field name="NAME">Main control loop</field><value name="STACKSIZE"><shadow type="math_number" id="xL=sx8GS5%@x~-.iJ=#r"><field name="NUM">4096</field></shadow></value><statement name="DO"><block type="controls_if" id="JlZRVGFT}fNOaI7G4aZN"><mutation elseif="1" else="1"></mutation><value name="IF0"><block type="logic_compare" id=";P97Jxt4w3R,C$p`ObmZ"><field name="OP">LT</field><value name="A"><block type="mh_gamepad_value" id="tKhJYUJ0iEmE0]{5e$qn"><field name="VALUE">GAMEPAD_LEFT_X</field><value name="GAMEPAD"><shadow type="mh_gamepad_gamepad" id="#cZ+=9C,V}.C@EIiU1U6"><field name="GAMEPAD">GAMEPAD1</field></shadow></value></block></value><value name="B"><block type="math_number" id="!Q#md;DOT4%nl#,UhCbO"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_if" id=":CO-vs?XM245U*1r%Fbd"><value name="IF0"><block type="logic_compare" id="u73m^_x$vT!z+7(V@yt$"><field name="OP">GTE</field><value name="A"><block type="variables_get" id="*)bHiKXHq5C0GgINz7LP"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field></block></value><value name="B"><block type="math_number" id="TE*p^+aVSO*tsMbQDZ}!"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="ui_show_value" id="AKx]teP9b#LSi0qiC[4q"><field name="LABEL">Direction</field><field name="STYLE">FORMAT_SIMPLE</field><value name="VALUE"><shadow type="text" id="OF~RckSNI_Yo}%|`XCR)"><field name="TEXT">Replace me</field></shadow><block type="text" id="=aKt94u)(^R2:RLM`fXQ"><field name="TEXT">Left</field></block></value><next><block type="mh_set_motor_speed" id="WZ%4=^ZFFY#kO+SRq(WX"><value name="PORT"><shadow type="mh_port" id="?/iLagn|#=00%IX*j@WI"><field name="PORT">PORT1</field></shadow></value><value name="VALUE"><block type="math_number" id="ebt,p/i!6nL6fmmsv)HX"><field name="NUM">-127</field></block></value><next><block type="variables_set" id="Qd0{}q/#:NgS0c}JB2Tz"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field><value name="VALUE"><block type="math_number" id="EQj-_5?}T,tVm%v%[eQW"><field name="NUM">-1</field></block></value></block></next></block></next></block></statement></block></statement><value name="IF1"><block type="logic_compare" id="BUU(rSGTixPJ2Z%n5(UX"><field name="OP">GT</field><value name="A"><block type="mh_gamepad_value" id="8_Bueyfz_7-=5dxe+M`C"><field name="VALUE">GAMEPAD_LEFT_X</field><value name="GAMEPAD"><shadow type="mh_gamepad_gamepad" id="S1LgUQ6AQ9JLIob-M_!D"><field name="GAMEPAD">GAMEPAD1</field></shadow></value></block></value><value name="B"><block type="math_number" id="zdq`-{-q^fBKc5V(#BKG"><field name="NUM">0</field></block></value></block></value><statement name="DO1"><block type="controls_if" id="uk?MzOah@}ayLI,P[FZf"><value name="IF0"><block type="logic_compare" id="m/).oHE.BF{?b8s?KJsq"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="b.^B(Ixw=2M7_F+unNKq"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field></block></value><value name="B"><block type="math_number" id="S%,G0m.^ccFENmvs.iN%"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="ui_show_value" id="F/YUPKk_#LU;i|IcT%Xa"><field name="LABEL">Direction</field><field name="STYLE">FORMAT_SIMPLE</field><value name="VALUE"><shadow type="text" id="OF~RckSNI_Yo}%|`XCR)"><field name="TEXT">Replace me</field></shadow><block type="text" id="/l%DKQQ=OBz1:@K!9EQG"><field name="TEXT">Right</field></block></value><next><block type="mh_set_motor_speed" id="X0TDuJc#m#ZAabn1_u}!"><value name="PORT"><shadow type="mh_port" id=";x4-oT_UDVdVaDCWT3@)"><field name="PORT">PORT1</field></shadow></value><value name="VALUE"><block type="math_number" id="ib}Y7{.++;QJ3US:SknG"><field name="NUM">127</field></block></value><next><block type="variables_set" id="X=~:Z6RUTS8qiZ5?{#v#"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field><value name="VALUE"><block type="math_number" id="@1t`w*-KEBd+_H00.T+="><field name="NUM">1</field></block></value></block></next></block></next></block></statement></block></statement><statement name="ELSE"><block type="controls_if" id="T{oKnSx~K+JV`(@$PdpK"><value name="IF0"><block type="logic_compare" id="*m|]yr6qsn9cH|kB4Gdc"><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="{;n639a665T=EbFl27vu"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field></block></value><value name="B"><block type="math_number" id="_:VOh!OO^4-acud@-[:5"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="ui_show_value" id="2^qL5x`D}q*8{P=U$E5P"><field name="LABEL">Direction</field><field name="STYLE">FORMAT_SIMPLE</field><value name="VALUE"><shadow type="text" id="OF~RckSNI_Yo}%|`XCR)"><field name="TEXT">Replace me</field></shadow><block type="text" id="z;WBP5aHx/zY`~W%6vXH"><field name="TEXT">Stopped</field></block></value><next><block type="mh_set_motor_speed" id="clvQl;rv|(?G`!c$#t9Z"><value name="PORT"><shadow type="mh_port" id="`#w[N@Q[FMDIsNNRQDl$"><field name="PORT">PORT1</field></shadow></value><value name="VALUE"><block type="math_number" id="VIQJK/U,-fOEz3+Pj:P8"><field name="NUM">0</field></block></value><next><block type="variables_set" id="7tez.uFv7ePy;c%?B}[K"><field name="VAR" id="aOvk#j.!7`bXx%@yc6w4">MOTOR_DIRECTION</field><value name="VALUE"><block type="math_number" id="P,aV.%PwGhP`PKAm%KR`"><field name="NUM">0</field></block></value></block></next></block></next></block></statement></block></statement><next><block type="mh_wait" id="G@?T/Mc}hK^s~kV{$930"><value name="VALUE"><shadow type="math_number" id="wvhykxbVbDhQyu79by}o"><field name="NUM">1000</field></shadow><block type="math_number" id="Pn9}6^sVFW65r^Vdy`yM"><field name="NUM">20</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block></xml>
0 commit comments