<xml xmlns="https://developers.google.com/blockly/xml" version="14"> <block type="start_block" id="DN^mJ1;up%ZB3(H0BtNd" deletable="false" x="-442" y="-706"> <statement name="statement"> <block type="motor_set_speed" id="nTe94(WV-mL2-hcY71fi"> <field name="instance_name">BTSmart_M2_motor</field> <field name="direction">Motor.CCW</field> <value name="speed"> <shadow type="motor_number" id="}Hmaj0QWl9]j3V;Vfo@|"> <field name="MOTOR_NUM">512</field> </shadow> </value> <next> <block type="controls_whileUntil" id="MYT1Y@RCf3zVc-oZ5r`e"> <field name="MODE">UNTIL</field> <value name="BOOL"> <block type="input_mini_switch_if_state" id="x#[4^9sl1wf|)/aogSiV"> <field name="instance_name">BTSmart_I2_mini_switch</field> <field name="property_name">closed</field> </block> </value> <next> <block type="motor_stop" id="dtiJ|D]!P:/4xL45hPD{"> <field name="instance_name">BTSmart_M2_motor</field> <next> <block type="loop_endless" id="X*?KRqC;0BDwI}TvYO2$"> <statement name="DO"> <block type="controls_if" id="9Y.V,oZ(=E:Dh7b{Ayo*"> <value name="IF0"> <block type="input_mini_switch_if_state" id="NKz=ayh8=S`LlH(_3-bj"> <field name="instance_name">BTSmart_I4_mini_switch</field> <field name="property_name">closed</field> </block> </value> <statement name="DO0"> <block type="util_wait_for" id="$UzeA6.Y^JSb3@LA[0m2"> <field name="format">s</field> <value name="value"> <shadow type="math_number" id=";vhAd1gBNrObU|%[KM?R"> <field name="NUM">0.6</field> </shadow> </value> <next> <block type="motor_set_speed" id="zgHghI#{ZTZfViQCDEk2"> <field name="instance_name">BTSmart_M1_motor</field> <field name="direction">Motor.CW</field> <value name="speed"> <shadow type="motor_number" id="(t$*Sz5^8A4]hON1bfbD"> <field name="MOTOR_NUM">512</field> </shadow> </value> <next> <block type="util_wait_for" id="HvvT6S]0pJ*S@9v:@$fj"> <field name="format">s</field> <value name="value"> <shadow type="math_number" id="]O@G77Bnh$]rfbH9v0*6"> <field name="NUM">0.5</field> </shadow> </value> <next> <block type="motor_stop" id="h41a*=0a5$bP=yQy*1bK"> <field name="instance_name">BTSmart_M1_motor</field> <next> <block type="motor_set_speed" id="CGDPu5?8MOe=-Dp[^FcB"> <field name="instance_name">BTSmart_M2_motor</field> <field name="direction">Motor.CW</field> <value name="speed"> <shadow type="motor_number" id="GztRoWNor#ELq9DL`]/k"> <field name="MOTOR_NUM">512</field> </shadow> </value> <next> <block type="controls_whileUntil" id="F{soZLKN:P,~/,nSB{Nz"> <field name="MODE">UNTIL</field> <value name="BOOL"> <block type="input_mini_switch_if_state" id="A:%l2Xq0`MZ(@BlWqFI$"> <field name="instance_name">BTSmart_I4_mini_switch</field> <field name="property_name">open</field> </block> </value> <next> <block type="motor_stop" id="M*)NFsHtWo-RCnW0uIuc"> <field name="instance_name">BTSmart_M1_motor</field> <next> <block type="motor_set_speed" id="GwjQrc2c4#Q73i(y=z#l"> <field name="instance_name">BTSmart_M2_motor</field> <field name="direction">Motor.CCW</field> <value name="speed"> <shadow type="motor_number" id="a0?J-(~Q{/Kdor:#ZL%8"> <field name="MOTOR_NUM">512</field> </shadow> </value> <next> <block type="controls_whileUntil" id=",~{F,CP4DyPKRSu:V9|["> <field name="MODE">UNTIL</field> <value name="BOOL"> <block type="input_mini_switch_if_state" id="#Kx|a^4xb}_]aB]QCji|"> <field name="instance_name">BTSmart_I2_mini_switch</field> <field name="property_name">closed</field> </block> </value> <next> <block type="motor_stop" id="i;A?]xwe$yGsVoUF[w1a"> <field name="instance_name">BTSmart_M2_motor</field> <next> <block type="motor_set_speed" id="0J7mPk94?uQEemE_hN=a"> <field name="instance_name">BTSmart_M1_motor</field> <field name="direction">Motor.CCW</field> <value name="speed"> <shadow type="motor_number" id="}f5cPrt.6f}*]h8;5$c9"> <field name="MOTOR_NUM">512</field> </shadow> </value> <next> <block type="util_wait_for" id="0[Cbp{X]j?`EC4Xe{uJ{"> <field name="format">s</field> <value name="value"> <shadow type="math_number" id="G:xY#goYg,$0MzHObr@@"> <field name="NUM">0.4</field> </shadow> </value> <next> <block type="motor_stop" id="*4}aYHk6h,Sii,z*;p+E"> <field name="instance_name">BTSmart_M1_motor</field> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>