Blocks: all pages

First 10 minutes

On this page you open a ready-made drive program for your Probot kit. You look at its code and download it to your computer. You do not need to install anything or create an account.

Probot Blocks screen; the Tank Drive example is loaded and its code shows in Code Preview.

Before you start

Open Blocks

  1. In your browser, go to probotstudio.com/blocks.
  2. On the "Coding tool is in development" card, press Got it, continue. Intro card; the Got it, continue button is marked 2.
    1. If the cookie banner appears, press Accept or Only necessary.

Check: There is no card on the screen. You can see the toolbar and the workspace.

Load the Tank Drive example

A Probot program has six ready-made blocks. robotInit runs once when you press Init on the Driver Station. teleopLoop runs about 50 times a second during TeleOp. Only the blocks you put inside these six blocks go into the code (Glossary).

Warning

Loading an example replaces the project in the workspace without asking. If you already made a project, save it first with Download blocks.

  1. In the toolbar, select the Probot Blocks tab. On your first visit the tool opens with the FTC Blocks tab. After that it opens with the tab you picked last. Toolbar; the Probot Blocks tab is marked 1.
    1. In the toolbar, press Pick an example.
  2. In the "Probot examples" window, select the Tank Drive card. A "Tank Drive example loaded." notification appears in the corner. Probot examples window; the Tank Drive card is marked 3.

Check: The Probot Blocks tab is orange. The button in the toolbar reads "Example: Tank Drive". robotInit holds two define motor blocks, and teleopLoop holds the read gamepad and tank drive blocks.

Look through the code

  1. In the side panel, move the mouse over Code Preview.
  2. Turn the mouse wheel down. The lines of code scroll up.
  3. When the void teleopLoop() line appears, stop turning the wheel. Code Preview; the teleopLoop function is marked 3.

Check: Inside void teleopLoop() there are two lines that start with setMotor(. The left stick drives the left motor, and the right stick drives the right motor. When you change a block, the code changes right away.

Type the WiFi password

The robot broadcasts its own WiFi network, and Blocks keeps its password in this browser. If you do not open Blocks in this browser for 30 days, the saved password is deleted. The tool then makes a new one. If that happens, type the password you wrote down into the box again.

  1. In the Robot WiFi section, clear the Password (min. 8) box.
  2. Type TEAM-2026 into the box. The box turns lowercase letters into capitals (ı becomes I too). It removes letters outside A to Z, spaces, and every symbol except -. Robot WiFi section; the Password box is marked 2.
    1. Write the password down somewhere. You need it to connect to the robot.

Check: At the top of Code Preview there is the line #define PROBOT_WIFI_AP_PASSWORD "TEAM-2026".

Download the project and the code

  1. In the toolbar, press Download blocks. tank-drive.probot.json downloads.
  2. In the toolbar, press Download .ino. tank-drive.ino downloads. Toolbar; Download blocks is marked 1 and Download .ino 2.
    1. On your computer, open the Downloads folder.

Check: The "Block project downloaded." and ".ino file downloaded." notifications appeared. The Downloads folder has tank-drive.probot.json and tank-drive.ino.

The .probot.json file is for opening the project later. The .ino file is the code you upload to the board.

Next step

On this page
Before you startOpen BlocksLoad the Tank Drive exampleLook through the codeType the WiFi passwordDownload the project and the codeNext step