Skip to content
Work in progress. This library and its docs are new and still changing, and some parts are not yet tested on a real robot. If something is wrong or unclear,tell us with a short GitHub form.

Set up 6: build and install

You build the robot project and install it on the Control Hub.

If you use only the simulator on this laptop, skip this page: the simulator needs no hubs. Go to Every practice.

Why: the robot runs the app that is on the hub, not the code on your laptop. You repeat steps 1, 3 and 4 after every change.

The buttons you use are at the top right of Android Studio:

The top right of Android Studio: 1 the device list (pick the Control Hub), 2 the run list (TeamCode for the robot, or Simulator), 3 Run (build and install, or start the simulator), 4 Stop, 5 Build (the hammer).

  1. Build: Build > Make Project (or the hammer, 5). Wait for the Build tab (bottom) to say it finished with no errors.
  2. Connect to the Control Hub. Turn on the robot. Pick one:
    • USB (the easiest): a USB cable from the laptop to the Control Hub’s USB-C port.

    • Wi-Fi: join the laptop to the Control Hub’s Wi-Fi network (ask your mentor for its name and password). Then type adb connect 192.168.43.1:5555.

      Where: Android Studio’s Terminal tab, in any folder.

      If it says adb is not found, use USB.

  3. Pick the hub. In the device list (1), pick the Control Hub. Its name starts with REV Robotics.
  4. Install: make sure the run list (2) says TeamCode, then click Run (3). It builds again and installs the app on the Control Hub.
  5. Check on the Driver Hub. It connects to the robot and shows the TeleOp and Autonomous lists.
    • FTC’s new project shows empty lists. That is normal: FTC hides its sample OpModes.
You see Do this
Red text, or a red line in the Build tab Read only the first error. It names the file, the line and the problem. Fix it, then build again.
The hub is not in the device list Try another USB cable (some only charge). Wait 10 seconds after the robot starts.
The Driver Hub shows a version warning Update the hubs.

The Driver Hub connects to the robot after the install.

Next: Make the robot configuration.

Look it up: Troubleshooting: build problems and Driver Station errors.

Something wrong on this page? Tell us with a short GitHub form.