Newer
Older
<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>
<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>
<block type="motor_set_speed" id="zgHghI#{ZTZfViQCDEk2">
<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>
<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>
<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>
<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>
<block type="motor_stop" id="M*)NFsHtWo-RCnW0uIuc">
<field name="instance_name">BTSmart_M1_motor</field>
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<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@@">
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
</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>