OnFor Basic Block


On For - turn the motors on for a period of time

   On For
    1.0 sec.
    [A B C]
.........
This block turns motors on. Select which motors you want on.
It uses whatever power level and direction was previously set.



motors to turn on xml
A B C
For sec.
(click outside to set time)
<block kind="basic" name="On">
  <param kind="motor">A</param>
  <param kind="motor">B</param>
  <param kind="motor">C</param>
  <param kind="duration">1.0</param>
</block>

The time is in seconds. The value 1.0 will turn the selected motors on for 1.0 sec. Entering a variable will turn the motors on for as many seconds as the value of the variable.

should we have a place for a variable and one for values?

Copyright © 2002 Jefferson Software