How to connect your laptop, compile your PROS project, upload it to the Brain, and use EZ Template's auton selector on competition day.
Press the power button. The Brain must show the home screen — not just "charging." PROS cannot communicate with a Brain that is off or in sleep mode.
Connect the micro-USB end firmly into the Brain's front port. Connect the USB-A end to your laptop. If you are using a USB-C laptop, use a USB-C hub that has a USB-A pass-through — not all adapters work reliably.
Open your PROS project in VS Code. Look at the bottom status bar — PROS shows a device indicator when the Brain is connected. You can also run pros v5 info-brain in the terminal to confirm detection.
Try a different USB port on your laptop. Try a different cable. Check that the Brain is fully on. On school laptops, the USB driver for V5 may need to be installed — ask your coach if this happens repeatedly on a specific machine.
pros build-upload, read the output. A successful upload ends with Uploading... done. If you see error: lines, the upload did not succeed and the Brain is still running your old code.The V5 Brain supports up to 8 program slots. Each slot holds one compiled program. This is useful for keeping a competition program in slot 1 and a test/debug version in slot 2.
In your initialize() function, add each autonomous routine to the selector. The string is what appears on the Brain screen.
After uploading, when the program is running in disabled mode (before a match starts), the Brain screen shows the auton selector:
In your autonomous() function, call ez::as::auton_selector.call_selected_auton(). This runs whichever routine is currently selected on the Brain screen.
| Error / Symptom | Most Likely Cause | Fix |
|---|---|---|
| Brain not detected | Cable issue or Brain is off | Try a different cable. Confirm Brain is powered on (not just connected to charger). Try a different USB port on the laptop. |
| Upload starts then fails mid-transfer | Bad cable, USB power issue, or laptop going to sleep | Use a shorter cable. Disable laptop sleep/USB suspend in power settings. Try direct USB-A port instead of a hub. |
| Compile error: "expected ';'" | Syntax error in your code | Read the error line number. Go to that line in VS Code. Look for a missing semicolon, brace, or parenthesis. IntelliSense red underlines will already be showing you the problem. |
| Compile error: "'chassis' was not declared" | Missing header include or file not saved | Make sure #include "EZ-Template/drive/drive.hpp" is in your file. Save all files (Ctrl+S) before building. |
| Upload succeeds but robot does not move | Competition switch in disabled mode, or wrong slot selected on Brain | Enable driver control on the Brain screen (or use a competition switch). Confirm you are running slot 1 and that opcontrol is wired correctly. |
| Auton selector not showing on Brain screen | autons_add() not called in initialize(), or program not in disabled state | Confirm autons_add is called inside initialize(). The selector only shows during the disabled period — not during opcontrol or autonomous. |
| Wrong autonomous runs at competition | Selector not updated before match or controller not connected | Always verify selector after connecting controller. The Brain screen must show the correct auton highlighted before the field enables autonomous. |
| pros: command not found (terminal) | PROS not installed or PATH not set | Close and reopen VS Code. If still failing, open the PROS panel and run "Install PROS" again. On school laptops, this may require re-running the extension setup. |
initialize, autonomous, opcontrol) are called by the RTOS at specific, field-controlled moments. This is identical to how industrial robots and medical devices work: hard real-time requirements where a missed deadline causes a physical failure.You’ve completed the Getting Started track. You have VS Code, PROS, EZ Template, and a working upload workflow. Now it’s time to join your team and start building something real.