Skip to content

Running Code on the Robot

Oliver Geer edited this page Aug 29, 2024 · 4 revisions

🔌 Running Code on the Robot

🍏🐧 If you're using MacOS/Linux rather than Windows, unfortunately you can't do this.

  1. If you want to run a tested version that can be used in matches, please ensure you are on the main branch in GitHub Desktop. Otherwise, ensure you are on the feature-specific branch you are testing.
  2. Open the Command Palette using the keyboard shortcut Ctrl+Shift+P, then enter "Build Robot Code". Fix any bugs if it fails, and let it download any dependencies while online.
  3. Ensure all of the hardware is wired correctly using the wiring diagram. Turn the robot on by closing the circuit at the circuit breaker, and wait for it to initialise.

🚨 For safety rules and hardware-specific notes please see this page.

Change Branch on GitHub Desktop Wiring Diagram
Screenshot Wiring Diagram
Image courtesy GitHub Pages docs
  1. Connect the RoboRIO on the robot by USB, or connect to the robot's WiFi network (currently 8173-UntitledSpaceCraft) on your computer.
  2. Open the Command Palette using the keyboard shortcut Ctrl+Shift+P, then enter "Deploy Robot Code".
  3. Open the FRC Driver Station App, ensure the Team Number under the gear icon is 8173, and wait for it to connect to the robot. Plug in the joystick to your computer via USB if needed. You can find more information about the Driver Station's functionality here.
Icon Driver Station Ensure Team Number Correct
Icon Driver Station Ensure Team Number Correct
Images courtesy WPILib docs
  1. Select the Op Mode you want to run (TeleOperated / Autonomous / etc.) then click "Enable" to start the robot.
  2. ⚠️ If something goes wrong, press the spacebar, or the circuit breaker on the robot, to emergency-stop the robot. You will then have to restart the whole robot using the circuit breaker.

Clone this wiki locally