Activities/Butialo: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 24: Line 24:
Can also be programmed with events. The previous program is equivalent to the following:
Can also be programmed with events. The previous program is equivalent to the following:


  local function adelante()
  local function adelante()   -- adelante is Spanish for forward or proceed
   Motores.setvel2mtr( 1, 500, 1, 500 )
   Motores.setvel2mtr( 1, 500, 1, 500 )
  end
  end
  local function esperar()
  local function esperar()   -- esperar is Spanish for wait
   Motores.setvel2mtr( 1, 0, 1, 0 )
   Motores.setvel2mtr( 1, 0, 1, 0 )
   wait( 1 )
   wait( 1 )