|
| 1 | +<xml> |
| 2 | + <category name="Loops" colour="120"> |
| 3 | + <block type="controls_repeat_ext"> |
| 4 | + <value name="TIMES"> |
| 5 | + <block type="math_number"> |
| 6 | + <field name="NUM">10</field> |
| 7 | + </block> |
| 8 | + </value> |
| 9 | + </block> |
| 10 | + <block type="controls_whileUntil"></block> |
| 11 | + <block type="controls_for"> |
| 12 | + <value name="FROM"> |
| 13 | + <block type="math_number"> |
| 14 | + <field name="NUM">1</field> |
| 15 | + </block> |
| 16 | + </value> |
| 17 | + <value name="TO"> |
| 18 | + <block type="math_number"> |
| 19 | + <field name="NUM">10</field> |
| 20 | + </block> |
| 21 | + </value> |
| 22 | + <value name="BY"> |
| 23 | + <block type="math_number"> |
| 24 | + <field name="NUM">1</field> |
| 25 | + </block> |
| 26 | + </value> |
| 27 | + </block> |
| 28 | + <block type="controls_forEach"></block> |
| 29 | + <block type="controls_flow_statements"></block> |
| 30 | + </category> |
| 31 | + <category name="Math" colour="230"> |
| 32 | + <block type="math_number"></block> |
| 33 | + <block type="math_arithmetic"></block> |
| 34 | + <block type="math_single"></block> |
| 35 | + <block type="math_trig"></block> |
| 36 | + <block type="math_constant"></block> |
| 37 | + <block type="math_number_property"></block> |
| 38 | + <block type="math_change"> |
| 39 | + <value name="DELTA"> |
| 40 | + <block type="math_number"> |
| 41 | + <field name="NUM">1</field> |
| 42 | + </block> |
| 43 | + </value> |
| 44 | + </block> |
| 45 | + <block type="math_round"></block> |
| 46 | + <block type="math_on_list"></block> |
| 47 | + <block type="math_modulo"></block> |
| 48 | + <block type="math_constrain"> |
| 49 | + <value name="LOW"> |
| 50 | + <block type="math_number"> |
| 51 | + <field name="NUM">1</field> |
| 52 | + </block> |
| 53 | + </value> |
| 54 | + <value name="HIGH"> |
| 55 | + <block type="math_number"> |
| 56 | + <field name="NUM">100</field> |
| 57 | + </block> |
| 58 | + </value> |
| 59 | + </block> |
| 60 | + <block type="math_random_int"> |
| 61 | + <value name="FROM"> |
| 62 | + <block type="math_number"> |
| 63 | + <field name="NUM">1</field> |
| 64 | + </block> |
| 65 | + </value> |
| 66 | + <value name="TO"> |
| 67 | + <block type="math_number"> |
| 68 | + <field name="NUM">100</field> |
| 69 | + </block> |
| 70 | + </value> |
| 71 | + </block> |
| 72 | + <block type="math_random_float"></block> |
| 73 | + </category> |
| 74 | + <category name="Text" colour="160"> |
| 75 | + <block type="text_print"></block> |
| 76 | + <block type="text"></block> |
| 77 | + <block type="text_join"></block> |
| 78 | + <block type="text_append"> |
| 79 | + <value name="TEXT"> |
| 80 | + <block type="text"></block> |
| 81 | + </value> |
| 82 | + </block> |
| 83 | + <block type="text_length"></block> |
| 84 | + <block type="text_isEmpty"></block> |
| 85 | + <block type="text_indexOf"> |
| 86 | + <value name="VALUE"> |
| 87 | + <block type="variables_get"> |
| 88 | + <field name="VAR">text</field> |
| 89 | + </block> |
| 90 | + </value> |
| 91 | + </block> |
| 92 | + <block type="text_charAt"> |
| 93 | + <value name="VALUE"> |
| 94 | + <block type="variables_get"> |
| 95 | + <field name="VAR">text</field> |
| 96 | + </block> |
| 97 | + </value> |
| 98 | + </block> |
| 99 | + <block type="text_getSubstring"> |
| 100 | + <value name="STRING"> |
| 101 | + <block type="variables_get"> |
| 102 | + <field name="VAR">text</field> |
| 103 | + </block> |
| 104 | + </value> |
| 105 | + </block> |
| 106 | + <block type="text_changeCase"></block> |
| 107 | + <block type="text_trim"></block> |
| 108 | + <!--block type="text_prompt_ext"> |
| 109 | + <value name="TEXT"> |
| 110 | + <block type="text"></block> |
| 111 | + </value> |
| 112 | + </block--> |
| 113 | + </category> |
| 114 | + <category name="Lists" colour="260"> |
| 115 | + <block type="lists_create_empty"></block> |
| 116 | + <block type="lists_create_with"></block> |
| 117 | + <block type="lists_repeat"> |
| 118 | + <value name="NUM"> |
| 119 | + <block type="math_number"> |
| 120 | + <field name="NUM">5</field> |
| 121 | + </block> |
| 122 | + </value> |
| 123 | + </block> |
| 124 | + <block type="lists_length"></block> |
| 125 | + <block type="lists_isEmpty"></block> |
| 126 | + <block type="lists_indexOf"> |
| 127 | + <value name="VALUE"> |
| 128 | + <block type="variables_get"> |
| 129 | + <field name="VAR">list</field> |
| 130 | + </block> |
| 131 | + </value> |
| 132 | + </block> |
| 133 | + <block type="lists_getIndex"> |
| 134 | + <value name="VALUE"> |
| 135 | + <block type="variables_get"> |
| 136 | + <field name="VAR">list</field> |
| 137 | + </block> |
| 138 | + </value> |
| 139 | + </block> |
| 140 | + <block type="lists_setIndex"> |
| 141 | + <value name="LIST"> |
| 142 | + <block type="variables_get"> |
| 143 | + <field name="VAR">list</field> |
| 144 | + </block> |
| 145 | + </value> |
| 146 | + </block> |
| 147 | + <block type="lists_getSublist"> |
| 148 | + <value name="LIST"> |
| 149 | + <block type="variables_get"> |
| 150 | + <field name="VAR">list</field> |
| 151 | + </block> |
| 152 | + </value> |
| 153 | + </block> |
| 154 | + <block type="hashmap_get_value"> |
| 155 | + </block> |
| 156 | + <block type="hashmap_get_keys"> |
| 157 | + </block> |
| 158 | + </category> |
| 159 | + <category name="Variables" custom="VARIABLE" colour="330"></category> |
| 160 | + <category name="Functions" custom="PROCEDURE" colour="290"></category> |
| 161 | + <category name="Event" colour="15"> |
| 162 | + <block type="coderbot_event_generator"> |
| 163 | + <value name="generator_statements"> |
| 164 | + <block type="controls_if"> |
| 165 | + <value name="IF0"> |
| 166 | + <block type="logic_compare"></block> |
| 167 | + </value> |
| 168 | + <value name="DO0"> |
| 169 | + <block type="coderbot_event_publisher"> |
| 170 | + <value name="event_data"> |
| 171 | + <block type="text"> |
| 172 | + </block> |
| 173 | + </value> |
| 174 | + <field name="event_topic">a_topic</field> |
| 175 | + </block> |
| 176 | + </value> |
| 177 | + </block> |
| 178 | + </value> |
| 179 | + </block> |
| 180 | + <block type="coderbot_event_publisher"> |
| 181 | + <value name="event_data"> |
| 182 | + <block type="text"> |
| 183 | + </block> |
| 184 | + </value> |
| 185 | + <field name="event_topic">a_topic</field> |
| 186 | + </block> |
| 187 | + <block type="coderbot_event_listener"> |
| 188 | + <field name="event_topic">a_topic</field> |
| 189 | + <value name="event_statements"> |
| 190 | + <block type="text_print"> |
| 191 | + <value name="TEXT"> |
| 192 | + <block type="variables_get"> |
| 193 | + <field name="VAR">event_data</field> |
| 194 | + </block> |
| 195 | + </value> |
| 196 | + </block> |
| 197 | + </value> |
| 198 | + </block> |
| 199 | + <block type="variables_get"> |
| 200 | + <field name="VAR">event_data</field> |
| 201 | + </block> |
| 202 | + </category> |
| 203 | + <category name="Movement" colour="40"> |
| 204 | + <block type="coderbot_moveForward"></block> |
| 205 | + <block type="coderbot_moveBackward"></block> |
| 206 | + <block type="coderbot_turnLeft"></block> |
| 207 | + <block type="coderbot_turnRight"></block> |
| 208 | + <block type="coderbot_motion_move"> |
| 209 | + <value name="DIST"> |
| 210 | + <block type="math_number"> |
| 211 | + <field name="NUM">10</field> |
| 212 | + </block> |
| 213 | + </value> |
| 214 | + </block> |
| 215 | + <block type="coderbot_motion_turn"> |
| 216 | + <value name="ANGLE"> |
| 217 | + <block type="math_number"> |
| 218 | + <field name="NUM">90</field> |
| 219 | + </block> |
| 220 | + </value> |
| 221 | + </block> |
| 222 | + <block type="coderbot_adv_move"> |
| 223 | + <value name="SPEED"> |
| 224 | + <block type="math_number"> |
| 225 | + <field name="NUM">100</field> |
| 226 | + </block> |
| 227 | + </value> |
| 228 | + <value name="ELAPSE"> |
| 229 | + <block type="math_number"> |
| 230 | + <field name="NUM">0.2</field> |
| 231 | + </block> |
| 232 | + </value> |
| 233 | + </block> |
| 234 | + <block type="coderbot_adv_motor"> |
| 235 | + <value name="SPEED_LEFT"> |
| 236 | + <block type="math_number"> |
| 237 | + <field name="NUM">100</field> |
| 238 | + </block> |
| 239 | + </value> |
| 240 | + <value name="SPEED_RIGHT"> |
| 241 | + <block type="math_number"> |
| 242 | + <field name="NUM">100</field> |
| 243 | + </block> |
| 244 | + </value> |
| 245 | + <value name="ELAPSE"> |
| 246 | + <block type="math_number"> |
| 247 | + <field name="NUM">1.0</field> |
| 248 | + </block> |
| 249 | + </value> |
| 250 | + <value name="STEPS_LEFT"> |
| 251 | + <block type="math_number"> |
| 252 | + <field name="NUM">-1</field> |
| 253 | + </block> |
| 254 | + </value> |
| 255 | + <value name="STEPS_RIGHT"> |
| 256 | + <block type="math_number"> |
| 257 | + <field name="NUM">-1</field> |
| 258 | + </block> |
| 259 | + </value> |
| 260 | + </block> |
| 261 | + <block type="coderbot_adv_stop"></block> |
| 262 | + <block type="coderbot_sleep"> |
| 263 | + <value name="ELAPSE"> |
| 264 | + <block type="math_number"> |
| 265 | + <field name="NUM">1.0</field> |
| 266 | + </block> |
| 267 | + </value> |
| 268 | + </block> |
| 269 | + </category>{%if cam%} |
| 270 | + <category name="Camera" colour="120"> |
| 271 | + <block type="coderbot_camera_photoTake"></block> |
| 272 | + <block type="coderbot_camera_videoRec"></block> |
| 273 | + <block type="coderbot_camera_videoStop"></block> |
| 274 | + </category> |
| 275 | + <category name="Sensor" colour="250"> |
| 276 | + <block type="coderbot_cam_average"></block> |
| 277 | + <block type="coderbot_adv_pathAhead"></block> |
| 278 | + <block type="coderbot_adv_findLine"></block> |
| 279 | + <block type="coderbot_adv_findSignal"></block> |
| 280 | + <block type="coderbot_adv_findFace"></block> |
| 281 | + <block type="coderbot_adv_findColor"> |
| 282 | + <value name="COLOR"> |
| 283 | + <block type="colour_picker"> |
| 284 | + </block> |
| 285 | + </value> |
| 286 | + </block> |
| 287 | + <block type="coderbot_adv_findText"> |
| 288 | + <value name="COLOR"> |
| 289 | + <block type="colour_picker"> |
| 290 | + </block> |
| 291 | + </value> |
| 292 | + </block> |
| 293 | + <block type="coderbot_adv_findQRCode"></block> |
| 294 | + <block type="coderbot_adv_findARCode"></block> |
| 295 | + <block type="coderbot_adv_find_class"></block> |
| 296 | + <block type="coderbot_adv_cnn_classify"></block> |
| 297 | + <block type="coderbot_sonar_get_distance"></block> |
| 298 | + </category>{%endif%} |
| 299 | + <category name="Sound" colour="220"> |
| 300 | + <block type="coderbot_audio_say"></block> |
| 301 | + <block type="coderbot_audio_record"></block> |
| 302 | + <block type="coderbot_audio_play"></block> |
| 303 | + <block type="coderbot_audio_hear"> |
| 304 | + <value name="LEVEL"> |
| 305 | + <block type="math_number"> |
| 306 | + <field name="NUM">100</field> |
| 307 | + </block> |
| 308 | + </value> |
| 309 | + <value name="ELAPSE"> |
| 310 | + <block type="math_number"> |
| 311 | + <field name="NUM">1.0</field> |
| 312 | + </block> |
| 313 | + </value> |
| 314 | + </block> |
| 315 | + <block type="coderbot_audio_listen"></block> |
| 316 | + <block type="coderbot_conv_get_action"></block> |
| 317 | + </category> |
| 318 | +</xml> |
0 commit comments