Programming Language Options

When programming within the REV Control System, there are three programming tools to choose from: Blocks, OnBot Java, and Android Studio. The following section highlights basic information, use cases, and access examples for the three compilers.

Blocks

The Blocks Programming Tool is a visual, programming tool that lets programmers uses a web browser to create, edit and save their op modes. This tool offers preset snippets of code that can be presented visually, using a drag-and-drop interface.

The Blocks Programming Tool lacks the complexity of the Java based programming tools available, which makes it a great place to start for rookie or novice programmers. Rookie programmers can learn programming logic in an intuitive and easy-to-learn environment. Because the Blocks Programming tool is a web-based interface, where programs are saved directly to the robot, it is easy to access on most devices to make code changes.

Accessing Blocks

This section assumes that you have already gone through the Configuring Android Device process and that you have JavaScript enabled web browser.

  1. Go to WiFi Settings, on a Windows 10 Computer, by clicking on the Wi-Fi symbol.

  2. Once the list of available Wi-Fi networks in the vicinity is displayed select the network that matches the name of your WiFi access point.

  3. Enter the password you set during the configuration phase.

  4. Once connected, open a JavaScript enabled browser (FIRST recommends Google Chrome).

  5. Go to IP Address http://192.168.43.1:8080

  6. At the top of the Robot Controller Console Page, there should be 3 menu options: Blocks, OnBot Java, and Manage. Choose Blocks.

  7. Check out the First Op Mode section to begin coding!

Passwords are case sensitive. If you do not remember your password, check the Program and Manage menu option on your driver station.

OnBot Java

A text-based programming tool that lets programmers use a web browser to create, edit and save their Java op modes.

OnBot Java is great for programmers with basic to advanced Java skills who would like to write text-based op modes. OnBot Java shares a web-based interface with the Blocks Programming tool. The web-based model is easy to access on most devices to make code change and reduces the need to have one set device for code changes.

Accessing OnBot Java

This section assumes that you have already gone through the Configuring Android Device process and that you have JavaScript enabled web browser.

  1. Go to WiFi Settings, on a Windows 10 Computer, by clicking on the Wi-Fi symbol.

  2. Once the list of available Wi-Fi networks in the vicinity is displayed select the network that matches the name of your WiFi access point.

  3. Enter the password you set during the configuration phase.

  4. Once connected open a JavaScript enabled browser (FIRST recommends Google Chrome).

  5. Go to IP Address http://192.168.43.1:8080

  6. At the top of the Robot Controller Console Page There should be 3 menu options Blocks, OnBot Java, and Manage. Choose OnBot Java

  7. Check out the First Op Mode section to begin coding!

Passwords are case sensitive. If you do not remember your password check the Program and Manage menu option on your driver station.

Android Studio - Java

An advanced integrated development environment for creating Android apps. This tool is the same tool that professional Android app developers use. Android Studio is only recommended for advanced users who have extensive Java programming experience.

Android Studio allows programmer with an advanced understanding of Java a more powerful development environment to work in. It offers enhanced editing and debugging features not available with OnBot Java or Blocks. However, Android Studio is not a web-based software and will need a dedicated laptop to run on.

Accessing Android Studio

To learn about how to properly download and work with Android Studio please visit the FTC Wiki. ‚Äč