servo_bouton_direction.abp 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <cb:CODEBLOCKS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://education.mit.edu/openblocks/ns http://education.mit.edu/openblocks/codeblocks.xsd" xmlns:cb="http://education.mit.edu/openblocks/ns">
  3. <Pages collapsible-pages="yes" drawer-with-page="yes">
  4. <Page page-color="40 40 40" page-drawer="ArduBlock" page-infullview="yes" page-name="ArduBlock" page-width="1920">
  5. <PageBlocks>
  6. <Block genus-name="setter_variable_number" id="201">
  7. <Location>
  8. <X>624</X>
  9. <Y>429</Y>
  10. </Location>
  11. <BeforeBlockId>162</BeforeBlockId>
  12. <Sockets num-sockets="2">
  13. <BlockConnector con-block-id="202" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  14. <BlockConnector con-block-id="203" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  15. </Sockets>
  16. </Block>
  17. <Block genus-name="number" id="203">
  18. <Location>
  19. <X>972</X>
  20. <Y>456</Y>
  21. </Location>
  22. <Plug>
  23. <BlockConnector con-block-id="201" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  24. </Plug>
  25. </Block>
  26. <Block genus-name="variable_number" id="202">
  27. <Label>servo</Label>
  28. <Location>
  29. <X>972</X>
  30. <Y>432</Y>
  31. </Location>
  32. <Plug>
  33. <BlockConnector con-block-id="201" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  34. </Plug>
  35. </Block>
  36. <Block genus-name="setter_variable_number" id="198">
  37. <Location>
  38. <X>625</X>
  39. <Y>310</Y>
  40. </Location>
  41. <BeforeBlockId>157</BeforeBlockId>
  42. <Sockets num-sockets="2">
  43. <BlockConnector con-block-id="199" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  44. <BlockConnector con-block-id="200" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  45. </Sockets>
  46. </Block>
  47. <Block genus-name="number" id="200">
  48. <Label>0</Label>
  49. <Location>
  50. <X>973</X>
  51. <Y>337</Y>
  52. </Location>
  53. <Plug>
  54. <BlockConnector con-block-id="198" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  55. </Plug>
  56. </Block>
  57. <Block genus-name="variable_number" id="199">
  58. <Label>servo</Label>
  59. <Location>
  60. <X>973</X>
  61. <Y>313</Y>
  62. </Location>
  63. <Plug>
  64. <BlockConnector con-block-id="198" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  65. </Plug>
  66. </Block>
  67. <Block genus-name="number" id="181">
  68. <Location>
  69. <X>752</X>
  70. <Y>226</Y>
  71. </Location>
  72. <Plug>
  73. <BlockConnector con-block-id="179" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  74. </Plug>
  75. </Block>
  76. <Block genus-name="variable_number" id="180">
  77. <Label>servo</Label>
  78. <Location>
  79. <X>638</X>
  80. <Y>226</Y>
  81. </Location>
  82. <Plug>
  83. <BlockConnector con-block-id="179" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  84. </Plug>
  85. </Block>
  86. <Block genus-name="not_equal" id="179">
  87. <Location>
  88. <X>628</X>
  89. <Y>223</Y>
  90. </Location>
  91. <Plug>
  92. <BlockConnector con-block-id="175" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  93. </Plug>
  94. <Sockets num-sockets="2">
  95. <BlockConnector con-block-id="180" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  96. <BlockConnector con-block-id="181" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  97. </Sockets>
  98. </Block>
  99. <Block genus-name="if" id="174">
  100. <Location>
  101. <X>307</X>
  102. <Y>188</Y>
  103. </Location>
  104. <BeforeBlockId>176</BeforeBlockId>
  105. <Sockets num-sockets="2">
  106. <BlockConnector con-block-id="171" connector-kind="socket" connector-type="boolean" init-type="boolean" label="Teste" position-type="single"/>
  107. <BlockConnector con-block-id="175" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Alors éxecute.." position-type="single"/>
  108. </Sockets>
  109. </Block>
  110. <Block genus-name="ifelse" id="175">
  111. <Location>
  112. <X>438</X>
  113. <Y>220</Y>
  114. </Location>
  115. <BeforeBlockId>174</BeforeBlockId>
  116. <Sockets num-sockets="3">
  117. <BlockConnector con-block-id="179" connector-kind="socket" connector-type="boolean" init-type="boolean" label="Teste" position-type="single"/>
  118. <BlockConnector con-block-id="157" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Alors éxecute.." position-type="single"/>
  119. <BlockConnector con-block-id="162" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Sinon éxécute" position-type="single"/>
  120. </Sockets>
  121. </Block>
  122. <Block genus-name="servo" id="162">
  123. <Location>
  124. <X>624</X>
  125. <Y>375</Y>
  126. </Location>
  127. <BeforeBlockId>175</BeforeBlockId>
  128. <AfterBlockId>201</AfterBlockId>
  129. <Sockets num-sockets="2">
  130. <BlockConnector con-block-id="163" connector-kind="socket" connector-type="number" init-type="number" label="broche#" position-type="single"/>
  131. <BlockConnector con-block-id="164" connector-kind="socket" connector-type="number" init-type="number" label="angle" position-type="single"/>
  132. </Sockets>
  133. </Block>
  134. <Block genus-name="number" id="164">
  135. <Label>-90</Label>
  136. <Location>
  137. <X>774</X>
  138. <Y>402</Y>
  139. </Location>
  140. <Plug>
  141. <BlockConnector con-block-id="162" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  142. </Plug>
  143. </Block>
  144. <Block genus-name="number" id="163">
  145. <Location>
  146. <X>774</X>
  147. <Y>378</Y>
  148. </Location>
  149. <Plug>
  150. <BlockConnector con-block-id="162" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  151. </Plug>
  152. </Block>
  153. <Block genus-name="servo" id="157">
  154. <Location>
  155. <X>625</X>
  156. <Y>256</Y>
  157. </Location>
  158. <BeforeBlockId>175</BeforeBlockId>
  159. <AfterBlockId>198</AfterBlockId>
  160. <Sockets num-sockets="2">
  161. <BlockConnector con-block-id="158" connector-kind="socket" connector-type="number" init-type="number" label="broche#" position-type="single"/>
  162. <BlockConnector con-block-id="159" connector-kind="socket" connector-type="number" init-type="number" label="angle" position-type="single"/>
  163. </Sockets>
  164. </Block>
  165. <Block genus-name="number" id="159">
  166. <Label>90</Label>
  167. <Location>
  168. <X>775</X>
  169. <Y>283</Y>
  170. </Location>
  171. <Plug>
  172. <BlockConnector con-block-id="157" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  173. </Plug>
  174. </Block>
  175. <Block genus-name="number" id="158">
  176. <Location>
  177. <X>775</X>
  178. <Y>259</Y>
  179. </Location>
  180. <Plug>
  181. <BlockConnector con-block-id="157" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  182. </Plug>
  183. </Block>
  184. <Block genus-name="pin-read-digital" id="171">
  185. <Location>
  186. <X>441</X>
  187. <Y>191</Y>
  188. </Location>
  189. <Plug>
  190. <BlockConnector con-block-id="174" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  191. </Plug>
  192. <Sockets num-sockets="1">
  193. <BlockConnector con-block-id="172" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  194. </Sockets>
  195. </Block>
  196. <Block genus-name="number" id="172">
  197. <Location>
  198. <X>735</X>
  199. <Y>191</Y>
  200. </Location>
  201. <Plug>
  202. <BlockConnector con-block-id="171" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  203. </Plug>
  204. </Block>
  205. <Block genus-name="setter_variable_number" id="176">
  206. <Location>
  207. <X>307</X>
  208. <Y>134</Y>
  209. </Location>
  210. <BeforeBlockId>154</BeforeBlockId>
  211. <AfterBlockId>174</AfterBlockId>
  212. <Sockets num-sockets="2">
  213. <BlockConnector con-block-id="177" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  214. <BlockConnector con-block-id="178" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  215. </Sockets>
  216. </Block>
  217. <Block genus-name="number" id="178">
  218. <Label>0</Label>
  219. <Location>
  220. <X>655</X>
  221. <Y>161</Y>
  222. </Location>
  223. <Plug>
  224. <BlockConnector con-block-id="176" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  225. </Plug>
  226. </Block>
  227. <Block genus-name="variable_number" id="177">
  228. <Label>servo</Label>
  229. <Location>
  230. <X>655</X>
  231. <Y>137</Y>
  232. </Location>
  233. <Plug>
  234. <BlockConnector con-block-id="176" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  235. </Plug>
  236. </Block>
  237. <Block genus-name="loop" id="154">
  238. <Location>
  239. <X>208</X>
  240. <Y>126</Y>
  241. </Location>
  242. <Sockets num-sockets="1">
  243. <BlockConnector con-block-id="176" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Faire" position-type="single"/>
  244. </Sockets>
  245. </Block>
  246. </PageBlocks>
  247. </Page>
  248. </Pages>
  249. </cb:CODEBLOCKS>