-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 4.94 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><block type="device_forever" id="3fBLAMYzOf:.ZM!dJfOD" x="290" y="-18"><statement name="HANDLER"><block type="controls_if" id="VQ6LfJsqHg-(.yF8gE`N"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="0h]DHHqz2dA[lYC-9)2T"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="ultrasonic_sensor" id="J#Nf#OB9g$rl4~^-7oLZ"><field name="unit">PingUnit.Centimeters</field></block></value><value name="B"><shadow type="math_number" id="GEU#qFD{(4D5JdtdX?)R"><field name="NUM">20</field></shadow></value></block></value><statement name="DO0"><block type="motor_motorStop" id="V;qjqY,USJ`kV!w*CP!s"><field name="motors">maqueen.Motors.All</field><next><block type="motor_MotorRun" id="!u_E@oma)~WgE|aNQ?=K"><field name="index">maqueen.Motors.All</field><field name="Dir">maqueen.Dir.CCW</field><value name="speed"><shadow type="math_number_minmax" id="0HiA9d])n-@h:%a)leS8"><mutation min="0" max="255" label="Speed" precision="0"></mutation><field name="SLIDER">50</field></shadow></value><next><block type="device_pause" id="!bcP~QQ`mg1VJmnczE[."><value name="pause"><shadow type="timePicker" id="Vf^|4T.m17c6%Z[#g#5."><field name="ms">500</field></shadow></value><next><block type="basic_show_arrow" id="]gwcj54_dK2rojgQ9Xt*"><value name="i"><shadow type="device_arrow" id="HtEcBQ!JINMU$.!kMj19"><field name="arrow">ArrowNames.East</field></shadow></value><next><block type="writeLED" id="-66mA`l?gwF{}Y#60X_g"><field name="ledswitch">maqueen.LED.LEDRight</field><field name="led">maqueen.LEDswitch.turnOn</field><next><block type="motor_MotorRun" id="o]cQ-4zx9-{{o;xtiHd`"><field name="index">maqueen.Motors.M1</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax" id="sbIZs6?wKWHW?S:r2Ejz"><mutation min="0" max="255" label="Speed" precision="0"></mutation><field name="SLIDER">50</field></shadow></value><next><block type="device_pause" id="oF!-tQW_f63[Ncaq9g:M"><value name="pause"><shadow type="timePicker" id="^*o?@B~IosUw050}?G/G"><field name="ms">100</field></shadow></value><next><block type="writeLED" id="gKHPL:LhL],(Fd8b~$41"><field name="ledswitch">maqueen.LED.LEDRight</field><field name="led">maqueen.LEDswitch.turnOff</field><next><block type="motor_motorStop" id="Cq9z$=iKmqqnj[uf:.*$"><field name="motors">maqueen.Motors.M1</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="basic_show_arrow" id="OXO3gVYO#7jUjS]V_UkJ"><value name="i"><shadow type="device_arrow" id="Z[50i|O`^*v_%Zt.A@Pv"><field name="arrow">ArrowNames.North</field></shadow></value><next><block type="motor_MotorRun" id="bB{/tOA3:+hu@0_yp#p*"><field name="index">maqueen.Motors.All</field><field name="Dir">maqueen.Dir.CW</field><value name="speed"><shadow type="math_number_minmax" id="CGRNuzrAEo*gIc1Bxt@B"><mutation min="0" max="255" label="Speed" precision="0"></mutation><field name="SLIDER">100</field></shadow></value></block></next></block></statement></block></statement></block><block type="pxt-on-start" id="}nkY:[JYTSqm`FnuI8~|" x="0" y="0"><statement name="HANDLER"><block type="basic_show_arrow" id="D|#FsT4r3rzAef0/lg_P"><value name="i"><shadow type="device_arrow" id="BJW2b^$1gq0b6kI60X*z"><field name="arrow">ArrowNames.North</field></shadow></value><next><block type="device_pause" id="UC^ZB{${(o:d{vZz3,Pl"><value name="pause"><shadow type="timePicker" id="r)PWVIb?QB-iCQM1+y8o"><field name="ms">1000</field></shadow></value><next><block type="writeLED" id="7H?r@3)m]n3-sm(M~P$R"><field name="ledswitch">maqueen.LED.LEDLeft</field><field name="led">maqueen.LEDswitch.turnOn</field><next><block type="writeLED" id="M{0+,7/P..odw8CyO8(8"><field name="ledswitch">maqueen.LED.LEDRight</field><field name="led">maqueen.LEDswitch.turnOn</field><next><block type="device_pause" id="a39g:Tcdl[96@;bcNVC,"><value name="pause"><shadow type="timePicker" id="=;Og_6qP,w/^!^+rw.G6"><field name="ms">100</field></shadow></value><next><block type="writeLED" id="=dUz,U(z6KU6LgX/J{.2"><field name="ledswitch">maqueen.LED.LEDLeft</field><field name="led">maqueen.LEDswitch.turnOff</field><next><block type="writeLED" id="VA9$VT(wNor1jevB8.f~"><field name="ledswitch">maqueen.LED.LEDRight</field><field name="led">maqueen.LEDswitch.turnOff</field><next><block type="playMelody" id="8hQ~c)BJ}b~kTy~#zwF|"><value name="melody"><shadow type="melody_editor" id="HDIOhGzNk=-H1LjVg):2"><field name="melody">"C C C E F E D F "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="X-sgn@r_|qKlt+QAv=,l"><mutation min="40" max="500" label="Tempo" precision="0"></mutation><field name="SLIDER">170</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>