Debian Codegraph @

online/static/samples/Vision Demos/AI birdy and LED.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <variables>
3 <variable id="(eG:3Li8hL6{B*coh|%{">height</variable>
4 </variables>
5 <block type="set_reg" id="(Y4?g9P%9Kq/k0/1#U49" x="24" y="-391">
6 <field name="REGISTER">DDRB</field>
7 <value name="VALUE">
8 <shadow type="math_number" id="m55h^Q2b2wcCy^vI/G/)">
9 <field name="NUM">255</field>
10 </shadow>
11 </value>
12 <next>
13 <block type="add_mp_hands" id="PmpiSG1J7]?u]Qn0x`6A">
14 <field name="CAM">front</field>
15 <next>
16 <block type="add_game" id="3YCPo!vOJS|o7/NBf9#[">
17 <next>
18 <block type="controls_whileUntil" id="{_DYrgvpuQ]o4DNAL(@c">
19 <field name="MODE">WHILE</field>
20 <value name="BOOL">
21 <shadow type="logic_boolean" id="$:VeO#~_9=s}L[+8i)nP">
22 <field name="BOOL">TRUE</field>
23 </shadow>
24 </value>
25 <statement name="DO">
26 <block type="controls_if" id="K+ZV~+Y14@?0=peOQVtl">
27 <value name="IF0">
28 <block type="ai_isHandAvailable" id="%Z`jR$L1A!{qhYi#`VX["></block>
29 </value>
30 <statement name="DO0">
31 <block type="variables_set" id="_7zX2{OAM)%2nV1uq|00">
32 <field name="VAR" id="(eG:3Li8hL6{B*coh|%{">height</field>
33 <value name="VALUE">
34 <block type="math_arithmetic" id="bxX+.6.-Mea/_I|nK(:]">
35 <field name="OP">MULTIPLY</field>
36 <value name="A">
37 <shadow type="math_number" id="M3ty:b[3c|X8FDz740HX">
38 <field name="NUM">4</field>
39 </shadow>
40 </value>
41 <value name="B">
42 <shadow type="math_number" id="DV.Iq`Mh[$.DMy[h2}xW">
43 <field name="NUM">1</field>
44 </shadow>
45 <block type="ai_distance" id="@G,9avKwi6w3KtnJw?1U">
46 <field name="finger_joint_1">4</field>
47 <field name="finger_joint_2">8</field>
48 </block>
49 </value>
50 </block>
51 </value>
52 <next>
53 <block type="set_bird_y" id="Wl.)ky-Wt!w[_:zKLo#L">
54 <value name="Y">
55 <shadow type="math_number" id="S~pg(N]Su,l~c-0Rl9*m">
56 <field name="NUM">200</field>
57 </shadow>
58 <block type="variables_get" id="zI_Fr`@g#$9C4I8yx(AN">
59 <field name="VAR" id="(eG:3Li8hL6{B*coh|%{">height</field>
60 </block>
61 </value>
62 <next>
63 <block type="controls_if" id="fdA#`M#ZMsi2lsT/qm!7">
64 <mutation else="1"></mutation>
65 <value name="IF0">
66 <block type="logic_compare" id="M=jlPT|/?Q0thR@ZlMSE">
67 <field name="OP">GT</field>
68 <value name="A">
69 <block type="variables_get" id="b:B-8g=p,N.6$/$rqU.j">
70 <field name="VAR" id="(eG:3Li8hL6{B*coh|%{">height</field>
71 </block>
72 </value>
73 <value name="B">
74 <block type="math_number" id="sas#f`)EBwM{tk[VL-~a">
75 <field name="NUM">500</field>
76 </block>
77 </value>
78 </block>
79 </value>
80 <statement name="DO0">
81 <block type="set_reg" id="pB,#d0WeM0,pU|,IC9^h">
82 <field name="REGISTER">PORTB</field>
83 <value name="VALUE">
84 <shadow type="math_number" id="Qm7^;;c~w!mF;uKM#SKA">
85 <field name="NUM">255</field>
86 </shadow>
87 </value>
88 </block>
89 </statement>
90 <statement name="ELSE">
91 <block type="set_reg" id="%mE%i:snSG0GtkaH@`c8">
92 <field name="REGISTER">PORTB</field>
93 <value name="VALUE">
94 <shadow type="math_number" id="1ZZ+Y55ysZclmhaN{L8,">
95 <field name="NUM">0</field>
96 </shadow>
97 </value>
98 </block>
99 </statement>
100 </block>
101 </next>
102 </block>
103 </next>
104 </block>
105 </statement>
106 <next>
107 <block type="wait_seconds" id="UU%OX4Rl^X!wa.N|v4*+">
108 <field name="SECONDS">0.01</field>
109 </block>
110 </next>
111 </block>
112 </statement>
113 <next>
114 <block type="stop_game" id="csu/*}K@-iRufK-do++G"></block>
115 </next>
116 </block>
117 </next>
118 </block>
119 </next>
120 </block>
121 </next>
122 </block>
123 <description>
124 <![CDATA[<h2>Bird game</h2><p>Tilt your phone up and down to move the bird up/Down.</p><p>addGame: Create a game set bird altitude; The height of the bird from the floor of the game box is set to the input number. It should be between 0(floor), and 1000(Roof)</p><p>Your phone has a built in rotation sensor.</p><p>The rotation values are between -1 and 1</p><p>These readings are measured and scaled to 0 to 1000 range by using basic arithmetic operators, and are then used to set the height of the character in the game.</p><p>Tilt your phone up and down to move the bird up/Down.</p>]]>
125 </description>
126 </xml>