-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 11.7 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="l6sY@|:11DLC~J*CpH3+">speed</variable></variables><block type="radio_on_number_drag" id="u2Mv1_t1aes#YsAw:F9f" x="349" y="-21"><value name="HANDLER_DRAG_PARAM_receivedNumber"><shadow type="argument_reporter_number" id="$yQS8xZXjm]/n*z0{;CJ"><field name="VALUE">receivedNumber</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="2sLc2OI|Ws3(QMySy15~"><value name="IF0"><shadow type="logic_boolean" id=".hqAcSF2yDCXC)_/NPFp"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="WU+9Oxg!%o_3I6V};v+M"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="/SLN.@5j.43Hfgc%#Q0h"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="RCbC@V+8pW2+@X$4]t!f"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="aIk`{;X4#S=pqf!f*^*Y"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="kitronik_motor_on" id="3.[/DZ|/o#nO%Xf?m$?n"><field name="motor">Kitronik_Robotics_Board.Motors.Motor1</field><field name="dir">Kitronik_Robotics_Board.MotorDirection.Forward</field><value name="speed"><shadow type="math_number_minmax" id="#QO3N8jKuOPY+$-#61R)"><mutation min="0" max="100" label="Speed" precision="0"/><field name="SLIDER">40</field></shadow><block type="variables_get" id="%T#A-3VXTfGHfkwF7m:6"><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field></block></value></block></statement><next><block type="controls_if" id="#nSq|Rh4zTKJZMtht%*7"><comment pinned="true" h="80" w="160" relx="-265" rely="-17">steering</comment><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="4lmNP$c,1X?I~eYoJq}h"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="m~bavTZLXGx-m6zqoE8,"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="dls+H*ucP$oT;G4jUIhw"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="4#ree|zC]uz=lNS0/0@="><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="kitronik_motor_on" id="y3SR68ghDvrqA3:}H}#l"><field name="motor">Kitronik_Robotics_Board.Motors.Motor1</field><field name="dir">Kitronik_Robotics_Board.MotorDirection.Reverse</field><value name="speed"><shadow type="math_number_minmax" id="$I!1yQ/vT45wB+;dLN@g"><mutation min="0" max="100" label="Speed" precision="0"/><field name="SLIDER">30</field></shadow></value></block></statement><next><block type="controls_if" id="Mkku-|:cit{O/;%3Dsd["><comment pinned="true" h="80" w="160" relx="-262" rely="-40">steering</comment><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="|HXZcIeObai1XCKB;J2W"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="l(~M*pJ]V|o+^vcf(5rK"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="G:u!d?Zktq1ASm5XyI6P"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="am=/JM2}ovXpiyUU*_ET"><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field><value name="VALUE"><shadow type="math_number" id="K*k?owA^jEU#[:eq`YR}"><field name="NUM">10</field></shadow></value></block></statement><next><block type="controls_if" id="%-[(H;kxN+4qju^A.z4}"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="^);)zJEb?3X(Yc_kD6[1"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="U),`XGD(9}D]3?juGYld"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="]gYNa,od,z_5Ld?H*hL7"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="G;GU]=gGhSTMyF%)z)2U"><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field><value name="VALUE"><shadow type="math_number" id="Xb=oD:|Nm6=NQ{qt!5C7"><field name="NUM">-10</field></shadow></value></block></statement><next><block type="controls_if" id="k2lS%yEL[N(L-U6!6sa="><comment pinned="true" h="190" w="273" relx="456" rely="67">DRS - if button is turned on motor 4 will turn for a second, when turned off it will go back to its original position</comment><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="-9CFvt+#}@7O;2c~,qr-"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="fL$J6nE).L5Q_ivV=8NG"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="=7Hj|tO:4Z:%286T1?dt"><field name="NUM">5</field></shadow></value></block></value><next><block type="controls_if" id="q=u$d5z-4@p`s`uX9WB8"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="`vpgkB`EGyV]DAZyr]):"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="jtD8j^Eg=_He+#i^TKn}"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="Y-?{l#?$%BkHz|-=BNbr"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="f@XL?HFdkMT7hY]j,[]t"><field name="NUM">6</field></shadow></value></block></value><next><block type="controls_if" id="gUYNL.8M5QJc-~zrLxHP"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="]jp3OlU;PoWG2]!D~nzY"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="k+t.nO=ZfF+.^F-aIRx|"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="`9q{lRs=-W1gG_P^Ns,!"><field name="NUM">7</field></shadow></value></block></value><next><block type="controls_if" id="n%!!R-+O$qhrBW}zwo!c"><comment pinned="true" h="80" w="160" relx="-265" rely="-17">steering</comment><value name="IF0"><shadow type="logic_boolean" id="J)6keU(m^9CUudgJ7!+]"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="rBm*7[H}*)wt+t|)@rI;"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="DWNX4fH;]FaSJ5}+-ok;"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="cO@y/|8EV!%zhvALe!;m"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="ZtgIwp;!WKa_z|L9yNE6"><field name="NUM">8</field></shadow></value></block></value><statement name="DO0"><block type="kitronik_motor_on" id="/qn]!TrTc0:s(L2d)+Gc"><field name="motor">Kitronik_Robotics_Board.Motors.Motor1</field><field name="dir">Kitronik_Robotics_Board.MotorDirection.Forward</field><value name="speed"><shadow type="math_number_minmax" id="^Bw9ND,Fi_oAK_,cwTM["><mutation min="0" max="100" label="Speed" precision="0"/><field name="SLIDER">0</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="]-0ZngHMh3BgDk^BEblT" x="0" y="0"><statement name="HANDLER"><block type="radio_set_group" id="f^eBR-x(e1o6)6exsEFo"><value name="ID"><shadow type="math_number_minmax" id=":~rV#K}T%EewuNd02+}5"><mutation min="0" max="255" label="Id" precision="0"/><field name="SLIDER">80</field></shadow></value><next><block type="variables_set" id="Gv;^;)jJ{#%e.(ZP~`H="><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field><value name="VALUE"><shadow type="math_number" id="+hFk1@3+m4gT#WZ^U1Dr"><field name="NUM">0</field></shadow></value></block></next></block></statement></block><block type="variables_get" id="14uHF#:9gx2dFS3oiwPq" disabled="true" x="900" y="99"><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field></block><block type="pxt-on-start" id="]sNsdNjH|-A7iKDqfX?#" x="1" y="383"><statement name="HANDLER"><block type="variables_set" id="U!v(=fk(%u3[$[7Nd)nC"><field name="VAR" id="l6sY@|:11DLC~J*CpH3+">speed</field><value name="VALUE"><shadow type="math_number" id="5SVs/!^}At$~ns:JjovS"><field name="NUM">1</field></shadow></value><next><block type="device_play_note" id="wXX*OyS.:,IqV:)!-3x)"><value name="note"><shadow type="device_note" id="xB5lD,/!JbyuO|IU(hmS"><field name="name">175</field></shadow></value><value name="duration"><shadow type="device_beat" id="#}ZRT1L9E+(#*dXV^T]C"><field name="fraction">BeatFraction.Quarter</field></shadow></value><next><block type="device_pause" id="TOHN.7qStd{0rHVeH_[j"><value name="pause"><shadow type="timePicker" id="ue3[$i;=Uv?~Y}cg*~$O"><field name="ms">5</field></shadow></value><next><block type="device_play_note" id="AvDJ]t:!DnG+D{/$VNKH"><value name="note"><shadow type="device_note" id="/M1`NG%1Zxmv-u)%1VUi"><field name="name">294</field></shadow></value><value name="duration"><shadow type="device_beat" id="Gyw5hjD%FfC//lB8^E/~"><field name="fraction">BeatFraction.Quarter</field></shadow></value><next><block type="device_pause" id="faKO]H#^O9ZC@*ekq+vp"><value name="pause"><shadow type="timePicker" id="iIxTP7nWZeVWV^g+vlI*"><field name="ms">5</field></shadow></value><next><block type="device_play_note" id=",=HdkgUy(hCdvt^-ZgL^"><value name="note"><shadow type="device_note" id="7}(D$I{{lRHOef4JatR."><field name="name">523</field></shadow></value><value name="duration"><shadow type="device_beat" id="^x=QU0ts2a@V6~*0BJFS"><field name="fraction">BeatFraction.Quarter</field></shadow></value><next><block type="device_pause" id="u|e}kk;alpOSl5Aygl=I"><value name="pause"><shadow type="timePicker" id="*5;$8aWVs`n;bl6[3BHH"><field name="ms">5</field></shadow></value><next><block type="device_play_note" id="-knh0:v!tvGEzew7A7Z6"><value name="note"><shadow type="device_note" id="OOk{Ektl/?^f@~$XD1]~"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id="#sz24fx)i=B[4]T}+1gX"><field name="fraction">BeatFraction.Half</field></shadow></value><next><block type="device_pause" id="w}?AHqqt1p8K,ZAlM_HH"><value name="pause"><shadow type="timePicker" id="4+{|^7pnYDct%+:GNSMl"><field name="ms">10</field></shadow></value><next><block type="device_set_digital_pin" id="At60FW;/0L({w`]GRKTz"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id=";59yh-?x2xqfltxuSgHZ"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="servoservosetangle" id=".weF2aPU]mND7LfQwEl8" disabled="true" x="-229" y="397"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="YLovCaORjFU.4sjkua1q" disabled="true"><field name="angle">90</field></shadow></value><next><block type="servoservosetangle" id="pkKPWUUqoB0o6i|@=N5}" disabled="true"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="n.Hw4`L)Avp;ww%dV}gr" disabled="true"><field name="angle">90</field></shadow></value></block></next></block><block type="device_show_number" id="L6?-T*f}J,O$=J#t=lP!" disabled="true" x="365" y="1099"><value name="number"><shadow type="math_number" id="s@JD};_@Bp:-G!?_Z0w)"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="5eb/L/vg-dohX)j`,?)P" disabled="true"><field name="VALUE">receivedNumber</field></block></value></block></xml>