BTSmart_Useless_Machine_2.blockly 10.93 KiB
<xml xmlns="https://developers.google.com/blockly/xml" version="14">
<block type="start_block" id="DN^mJ1;up%ZB3(H0BtNd" deletable="false" x="-388" y="-442">
<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="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="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="util_wait_for" id="rCWLfIcN_ouZ+[.^?Tn|">
<field name="format">s</field>
<value name="value">
<shadow type="math_number" id="P8B8Y%zg0uP-5KZv@@8A">
<field name="NUM">0.5</field>
</shadow>
</value>
<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="util_wait_for" id="j{:jJC+p%La6;cYm!;8#">
<field name="format">s</field>
<value name="value">
<shadow type="math_number" id="LqC)q-Pd/2A6at;$zuk!">
<field name="NUM">0.5</field>
</shadow>
</value>
<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.5</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>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>