Skip to main content

Draw-to-code

Draw-to-code is the simplest programming path in the app.

When to use it

Use this mode when you want to:

  • get started quickly
  • explore robot behavior visually
  • avoid the complexity of code syntax

What you can build

Use Draw-to-code to make the robot:

  • drive forward
  • turn
  • follow a route
  • stop at selected points
  • perform actions at selected points

In the drawing area:

  • drag with one finger to draw
  • use two fingers to zoom
  • use two fingers to pan around the workspace
  • drag points to reshape the path

Touch and drag to create a new line. Each new line starts from the last point in the current path.

Editing lines

Tap a line to open its configuration sheet. Depending on the command, you can:

  • adjust speed
  • adjust acceleration
  • change direction
  • remove the line

Editing points

Tap a point on the path to change what happens there.

Typical point options include:

  • adjust rotation speed
  • adjust rotation acceleration
  • delete the point from the drawing
  • add a command to execute at that point

Points can be used for actions such as stopping, turning, moving the arm, playing a sound, or changing the screen output.

Toolbar options

Use the toolbar for drawing-wide options such as:

  • enable measurement display to show line lengths and angles
  • show or hide the grid
  • switch directions
  • clear the entire drawing

Direct control during coding

If the robot is not positioned well, you can still use direct driving controls in the coding view to move it closer before running the path again.