<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="base_setup_loop" x="-437" y="-212">
    <statement name="DO">
      <block type="inout_digital_write">
        <value name="PIN">
          <block type="math_number">
            <field name="NUM">11</field>
          </block>
        </value>
        <value name="STAT">
          <shadow type="inout_onoff">
            <field name="BOOL">HIGH</field>
          </shadow>
          <block type="inout_onoff">
            <field name="BOOL">LOW</field>
          </block>
        </value>
      </block>
    </statement>
    <statement name="LOOP">
      <block type="inout_digital_write">
        <value name="PIN">
          <block type="math_number">
            <field name="NUM">11</field>
          </block>
        </value>
        <value name="STAT">
          <shadow type="inout_onoff">
            <field name="BOOL">HIGH</field>
          </shadow>
        </value>
        <next>
          <block type="base_delay">
            <value name="DELAY_TIME">
              <shadow type="math_number">
                <field name="NUM">1000</field>
              </shadow>
              <block type="math_number">
                <field name="NUM">10</field>
              </block>
            </value>
            <next>
              <block type="inout_digital_write">
                <value name="PIN">
                  <block type="math_number">
                    <field name="NUM">11</field>
                  </block>
                </value>
                <value name="STAT">
                  <shadow type="inout_onoff">
                    <field name="BOOL">HIGH</field>
                  </shadow>
                  <block type="inout_onoff">
                    <field name="BOOL">LOW</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set">
                    <field name="VAR">lecture_echo</field>
                    <value name="VALUE">
                      <block type="variables_set_type">
                        <field name="VARIABLE_SETTYPE_TYPE">NUMBER</field>
                        <value name="VARIABLE_SETTYPE_INPUT">
                          <block type="inout_pulsein">
                            <field name="STAT">HIGH</field>
                            <value name="PIN">
                              <block type="math_number">
                                <field name="NUM">10</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set">
                        <field name="VAR">cm</field>
                        <value name="VALUE">
                          <block type="variables_set_type">
                            <field name="VARIABLE_SETTYPE_TYPE">DECIMAL</field>
                            <value name="VARIABLE_SETTYPE_INPUT">
                              <block type="math_arithmetic">
                                <field name="OP">DIVIDE</field>
                                <value name="A">
                                  <block type="variables_get">
                                    <field name="VAR">lecture_echo</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number">
                                    <field name="NUM">58</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="serial_print">
                            <value name="CONTENT">
                              <shadow type="text">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="variables_get">
                                <field name="VAR">cm</field>
                              </block>
                            </value>
                            <next>
                              <block type="base_delay">
                                <value name="DELAY_TIME">
                                  <shadow type="math_number">
                                    <field name="NUM">1000</field>
                                  </shadow>
                                  <block type="math_number">
                                    <field name="NUM">10</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get">
                                            <field name="VAR">cm</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number">
                                            <field name="NUM">25</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="procedures_callnoreturn">
                                        <mutation name="Avance"></mutation>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="procedures_callnoreturn">
                                        <mutation name="Arrete"></mutation>
                                        <next>
                                          <block type="base_delay">
                                            <value name="DELAY_TIME">
                                              <shadow type="math_number">
                                                <field name="NUM">1000</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="procedures_callnoreturn">
                                                <mutation name="Recule"></mutation>
                                                <next>
                                                  <block type="base_delay">
                                                    <value name="DELAY_TIME">
                                                      <shadow type="math_number">
                                                        <field name="NUM">1000</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="procedures_callnoreturn">
                                                        <mutation name="TourneGauche"></mutation>
                                                        <next>
                                                          <block type="base_delay">
                                                            <value name="DELAY_TIME">
                                                              <shadow type="math_number">
                                                                <field name="NUM">1000</field>
                                                              </shadow>
                                                              <block type="math_number">
                                                                <field name="NUM">300</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="procedures_callnoreturn">
                                                                <mutation name="Arrete"></mutation>
                                                                <next>
                                                                  <block type="base_delay">
                                                                    <value name="DELAY_TIME">
                                                                      <shadow type="math_number">
                                                                        <field name="NUM">1000</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="262" y="87">
    <field name="NAME">Avance</field>
    <statement name="STACK">
      <block type="inout_digital_write_validator">
        <field name="PIN">7</field>
        <field name="STAT">HIGH</field>
        <next>
          <block type="inout_digital_write_validator">
            <field name="PIN">6</field>
            <field name="STAT">LOW</field>
            <next>
              <block type="inout_digital_write_validator">
                <field name="PIN">5</field>
                <field name="STAT">LOW</field>
                <next>
                  <block type="inout_digital_write_validator">
                    <field name="PIN">4</field>
                    <field name="STAT">HIGH</field>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="263" y="238">
    <field name="NAME">Recule</field>
    <statement name="STACK">
      <block type="inout_digital_write_validator">
        <field name="PIN">7</field>
        <field name="STAT">LOW</field>
        <next>
          <block type="inout_digital_write_validator">
            <field name="PIN">6</field>
            <field name="STAT">HIGH</field>
            <next>
              <block type="inout_digital_write_validator">
                <field name="PIN">5</field>
                <field name="STAT">HIGH</field>
                <next>
                  <block type="inout_digital_write_validator">
                    <field name="PIN">4</field>
                    <field name="STAT">LOW</field>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="263" y="412">
    <field name="NAME">TourneGauche</field>
    <statement name="STACK">
      <block type="inout_digital_write_validator">
        <field name="PIN">7</field>
        <field name="STAT">LOW</field>
        <next>
          <block type="inout_digital_write_validator">
            <field name="PIN">6</field>
            <field name="STAT">HIGH</field>
            <next>
              <block type="inout_digital_write_validator">
                <field name="PIN">5</field>
                <field name="STAT">LOW</field>
                <next>
                  <block type="inout_digital_write_validator">
                    <field name="PIN">4</field>
                    <field name="STAT">HIGH</field>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="263" y="563">
    <field name="NAME">TourneDroite</field>
    <statement name="STACK">
      <block type="inout_digital_write_validator">
        <field name="PIN">7</field>
        <field name="STAT">HIGH</field>
        <next>
          <block type="inout_digital_write_validator">
            <field name="PIN">6</field>
            <field name="STAT">LOW</field>
            <next>
              <block type="inout_digital_write_validator">
                <field name="PIN">5</field>
                <field name="STAT">HIGH</field>
                <next>
                  <block type="inout_digital_write_validator">
                    <field name="PIN">4</field>
                    <field name="STAT">LOW</field>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="263" y="713">
    <field name="NAME">Arrete</field>
    <statement name="STACK">
      <block type="inout_digital_write_validator">
        <field name="PIN">7</field>
        <field name="STAT">LOW</field>
        <next>
          <block type="inout_digital_write_validator">
            <field name="PIN">6</field>
            <field name="STAT">LOW</field>
            <next>
              <block type="inout_digital_write_validator">
                <field name="PIN">5</field>
                <field name="STAT">LOW</field>
                <next>
                  <block type="inout_digital_write_validator">
                    <field name="PIN">4</field>
                    <field name="STAT">LOW</field>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>