Introduction and Installation of PROS | Setting Up the PROS Editor | Introduction to C | Introduction to Object Oriented Programming and C++
- Introduction and Installation of PROS
- Setting Up the PROS Editor
- Introduction to C
- Introduction to Object Oriented Programming and C++
To function, a robot needs a set of instructions of what it is supposed to do. These instructions are written by a programmer in a certain programming language. The set of instructions, also called code, can be typed in any text-based editor. However, to simplify and reduce error, often an integrated development environment (IDE) is used. IDEs have plugins that can read, compile, and find syntax and logic errors, among other beneficial uses within your code. Code can take many shapes and forms, but ultimately is a part of a program, a collection of code, that is then compiled and deployed to the robot.
In 2018, VEX Robotics released the V5 Control System. A feature of V5 is the new supported programming languages: C++, RobotC++, Blockly (a graphical language), Python, and JavaScript. Currently, there are several IDEs that can be used to program the V5 Control System: VEX Coding Studio, the PROS Editor, and Robot Mesh Studio. PYRO chooses to use PROS Editor to program VEX robots, as it is powerful and clean compared to its alternatives. The latest version, PROS 3, supports programming in C++ and C.
PROS (Purdue Robotics Operating System) was created and is maintained by the Purdue ACM SIGBots.
It should be noted that PROS is an operating system which includes the VEX libraries and functionality to deploy code to the robot. The IDE that is used by PROS is called the PROS Editor, a modified version of Atom, a text-based editor. A useful feature in using Atom with PROS is that the programmer can download and use any of the many custom plugins built for Atom, streamlining the process of programming.
NOTE: Atom is installed automatically by the PROS installer. You do not need to install Atom separately.
Unless otherwise specified, “PROS” implies the PROS Editor, including both the operating system (libraries) and the IDE (Atom). Example: “How to set up PROS 3 (VEX V5) for Windows” implies also setting up Atom.
Prior to the release of the V5 Control System, VEX robots used the Cortex microcontroller brain and were written almost exclusively in the C programming language. Programmers could choose from several IDEs, albeit RobotC was commonly used. The PROS 2 Editor was an alternative IDE, and featured advanced programming capabilities, custom sensor integration, and faster speeds than RobotC.
-
Go to https://github.com/purduesigbots/pros-cli3/releases.
-
Click on the link corresponding to your operating system to download the installer.
-
When the download finishes, run pros-windows-3.1.2.0-XXbit.exe.
- Wait for the installer to finish launching, as shown below. Choose an option for how many users to install PROS for. The default is “Everybody (all users)”, but “Only for me (username)” can be chosen to save storage space. When satisfied with your selection, click next.
-
Choose which features you would like to install, as shown below. “PROS Editor” and “llvm” are necessary. In addition, to deploy code to the robot, a programming cable driver is needed. Select the correct programming cable driver according to your computer’s operating system. 32-bit operating systems must use the 32-bit programming cable driver. If you are unsure of which driver to install, choose the 32-bit driver.
If you would like to change where PROS is installed, edit the directory in the “Installation Folder” tab.
- Agree to the licensing of PROS and click “Accept and Install” in the bottom-right corner, as shown below.
- Wait while the installer installs PROS, as shown below. Do not close the installer in this step, as you will have to run the installer again to install PROS. Depending on your computer, this step may take some time.
- Click “Finish” to close the installer. PROS has been successfully installed, as shown below.
It is recommended that you install PROS 3 instead, as it includes support for V5 AND the Cortex.
- Go to https://pros.cs.purdue.edu/.
- Navigate down to the section titled “DOWNLOAD,” as shown below.
- Click on the “DOWNLOAD” button.
- Run pros-win.exe when the program is done downloading. If using Google Chrome, the download should appear in the bottom-left corner, as shown below.
- Wait for the installer to finish launching, as shown below. Choose an option for how many users to install PROS for. The default is “Everybody (all users)”, but “Only for me (username)” can be chosen to save storage space. When satisfied with your selection, click next.
-
Choose which features you would like to install, as shown below. “PROS Editor” and “llvm” are necessary. In addition, to deploy code to the robot, a programming cable driver is needed. Select the correct programming cable driver according to your computer’s operating system. 32-bit operating systems must use the 32-bit programming cable driver. If you are unsure of which driver to install, choose the 32-bit driver.
If you would like to change where PROS is installed, edit the directory in the “Installation Folder” tab.
- Agree to the licensing of PROS and click “Accept and Install” in the bottom-right corner, as shown below.
- Wait while the installer installs PROS, as shown below. Do not close the installer in this step, as you will have to run the installer again to install PROS. Depending on your computer, this step may take some time.
- Click “Finish” to close the installer. PROS has been successfully installed, as shown below.
Creating a desktop shortcut:
- Search Windows for PROS. This can be done by selecting the Windows icon on the taskbar (or typing the Windows key) and typing PROS. Windows should find “PROS Editor x64/x32 Desktop app,” as shown below.
- Right click on “PROS Editor x64/x32 Desktop app” and select “Open file location,” as shown below.
- In the Windows Explorer window that popped-up, right click “PROS Editor x32/x64,” hover over “Send to” to bring up options, and click “Desktop (create shortcut).”
Follow the official tutorials under Getting Started / Installing PROS listed in the official documentation linked below.
For more details, visit PROS’s official documentation: https://pros.cs.purdue.edu/cortex/getting-started/index.html#installing-pros
Next Page: Setting Up the PROS Editor