Drive Practice Setup for Mechanical Students
AKA How To Get The Robot To Drive Without Being A Programmer
Step 0: Login
- Log in to the laptop with the PIN of 2122.
- Connect to a mobile hotspot or a Wi-Fi with actual internet (not the robot).
Step 1: Open the Robot Project
- Open the "{this year} WPILib VS Code" (e.g. 2024 WPILib VS Code)
- Check the top of the window:

If it has the name of the robot you're working with, great. Otherwise, check File > Open Recent for the repo, else File > Open Folder and open whichever one of these paths exists:C:\Code\<robot name here>C:\Users\senti\Code\<robot name here>C:\Users\<other users>\Code\<robot name here>
If none exist, it may not be on that laptop. Check the other one.
Step 2: Fetch

- Once you have the correct robot code open, press Ctrl+Shift+` to open a terminal.
- Type
git fetchinto the terminal (at the bottom) and press Enter. - Check the output:
- If it has
Could not resolve hostname, make sure you're connected to the internet and try again. - If the last line is like
Unpacking objects: 100% (XX/XX), XX.XX KiB | X.XX MiB/s, done., you've successfully fetched. Continue to the next step. - If there was no output (if it just gave you another prompt), you're already up to date. Continue to the next step.
Step 3: Select Tag
- With the terminal still open, type in
git tagand press Enter. - It should list tags from newest to oldest. Note the name of the most recent (topmost) one with a name containing "drive practice" or something similar.
- Type in
git checkout <name of tag>and press Enter. - Check the output:
- If it ends with
HEAD is now at <whatever>, you're good. Continue to the next step. - If it ends with
Please commit your changes or stash them before you switch branches., typegit stash, hit Enter, and retry the checkout. - If it starts with
error: you need to resolve your current index first, typegit add .and hit Enter. Then typegit stash, hit Enter, complain to Programming for leaving you a merge conflict, then try the checkout again.
Step 4: Deploy
- Find the WPILib \
near the upper right and click it:
If the button isn't present, open the Command Palette with Ctrl+Shift+P
- Find the "WPILib: Deploy Robot Code" option (if you opened the command palette, you can type in "wpilib" and it should show up) and click it.
- If it asks you to "Pick a language", choose Java.
- Wait for it to deploy, and check the output:
- If it ends with
BUILD SUCCESSFUL, the code deployed. Continue to the next step. - If it ends with
BUILD FAILED, the deploy failed. Look through the output and find* What went wrong:to see why (you may need to scroll): Execution failed for task ':discoverroborio'.: You aren't connected to the robot.Execution failed for task ':compileJava'.: There's an error in the code. Go back to a terminal, typegit stash, hit Enter, and then try again. If it still fails, contact Programming.- Anything else: Hopefully the message is helpful?
- If it ends with
Step 5: Drive
- Open the FRC Driver Station app.
- Verify that the robot is connected and has code loaded ("Communications" and "Robot Code" should both have fully green boxes next to them)
- Switch to the Devices tab (
) (on the left, USB icon) and make sure that your driver controller appears on slot 0 (pressing buttons should make it light up), and your gunner controller (if any) on slot 1. If not, drag and drop to reorder. - Make sure you can easily hit Enter (disable) or Space (E-stop) if needed. (If you E-Stop, you'll need to redeploy the robot code.)
- Switch back to the Operation tab (
), select TeleOperated mode, and press Enable to start the robot.