Difference between revisions of "In progress"

From IPRE Wiki
Jump to: navigation, search
Line 1: Line 1:
Sent as an email attachment as of now.
+
====Myro Review====
 +
 
 +
{| cellspacing="0" border="1"
 +
! Command
 +
! Description
 +
|-
 +
|<tt>backward(SPEED)</tt><br>
 +
|Move backwards at <tt>SPEED</tt> (value in the range -1.0..1.0).
 +
|-
 +
|<tt>forward(SPEED)</tt><br>
 +
|Move forward at <tt>SPEED</tt> (value in the range -1.0..1.0).
 +
|-
 +
|<tt>move(TRANSLATE,&nbsp;ROTATE)</tt><br>
 +
|Move at the <tt>TRANSLATE</tt> and <tt>ROTATE</tt> speeds (value in the range -1.0..1.0).
 +
|-
 +
|<tt>motors(LEFT, RIGHT)</tt><br>
 +
|Turn the left motor at <tt>LEFT</tt> speed and right motor at <tt>RIGHT</tt> speed (value in the range -1.0..1.0).
 +
|-
 +
|<tt>rotate(SPEED)</tt><br>
 +
|Rotates at <tt>SPEED</tt> (value in the range -1.0..1.0). negative value make it rotate right (clockwise) and positive values rotate left (counter-clockwise).
 +
|-
 +
|<tt>stop()</tt><br>
 +
|Stops the robot from moving.
 +
|-
 +
|<tt>translate(SPEED)</tt><br>
 +
|Move in a straight line at <tt>SPEED</tt> (value in the range -1.0..1.0). Negative values specify backward movement and positive values specify forward movement.
 +
|-
 +
|<tt>turnLeft(SPEED)</tt><br>
 +
|Turn left at <tt>SPEED</tt> (value in the range -1.0..1.0)
 +
|-
 +
|<tt>turnRight(SPEED)</tt><br>
 +
|Turn right at <tt>SPEED</tt> (value in the range -1.0..1.0)
 +
|-
 +
|<tt>wait(TIME)</tt><br>
 +
|Pause for the given amount of <tt>TIME</tt> seconds. <tt>TIME</tt> can be a decimal number.
 +
|}
 +
<br>

Revision as of 21:17, 26 July 2007

Myro Review

Command Description
backward(SPEED)
Move backwards at SPEED (value in the range -1.0..1.0).
forward(SPEED)
Move forward at SPEED (value in the range -1.0..1.0).
move(TRANSLATE, ROTATE)
Move at the TRANSLATE and ROTATE speeds (value in the range -1.0..1.0).
motors(LEFT, RIGHT)
Turn the left motor at LEFT speed and right motor at RIGHT speed (value in the range -1.0..1.0).
rotate(SPEED)
Rotates at SPEED (value in the range -1.0..1.0). negative value make it rotate right (clockwise) and positive values rotate left (counter-clockwise).
stop()
Stops the robot from moving.
translate(SPEED)
Move in a straight line at SPEED (value in the range -1.0..1.0). Negative values specify backward movement and positive values specify forward movement.
turnLeft(SPEED)
Turn left at SPEED (value in the range -1.0..1.0)
turnRight(SPEED)
Turn right at SPEED (value in the range -1.0..1.0)
wait(TIME)
Pause for the given amount of TIME seconds. TIME can be a decimal number.