From 08a6663c4b32f2d5ce730f42c57c3499d0ab42ef Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 31 Oct 2026 11:26:01 -0700 Subject: [PATCH] Updated simulator, another way to run the sim --- docs/curriculum/robot-fundamentals/simulator.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/curriculum/robot-fundamentals/simulator.md b/docs/curriculum/robot-fundamentals/simulator.md index 030f9c9..c5c007f 100644 --- a/docs/curriculum/robot-fundamentals/simulator.md +++ b/docs/curriculum/robot-fundamentals/simulator.md @@ -20,12 +20,20 @@ The simulator can use your keyboard as a joystick, but only for the **left stick ## 1. Start the simulator -In the top-right corner of IntelliJ, select the **Simulate Robot** launch configuration, then click the green play triangle beside it. - +In the top-right corner of IntelliJ, select the **Simulate Robot** launch configuration, then click the green play triangle beside it. Click the down arrow if you don't see it. The Simulate Robot launch configuration in IntelliJ Your code builds, and then a new window called **Robot Simulation** opens. +### Another way to start the simulator + +There is a chance that the **Simulator Robot** doesn't work. If that happens follow these steps: + +1. Open the **Terminal** found at the bottom left +2. Type **./gradlew simulateJava** + +It can take sometime for it to run the first time. + ## 2. Connect your controller and enable the robot In the Robot Simulation window: @@ -41,7 +49,7 @@ When you're done it should look like this: ## 3. Watch the robot in AdvantageScope 1. Open **AdvantageScope (WPILib)**. It can take a while to start. The app name ends with the year of the WPILib version you installed, for example "AdvantageScope (WPILib) 2026". -2. Choose **File → Connect to Simulator**. +2. Choose **File → Connect to Simulator → Default**. 3. Choose **File → Import Layout...** and select `AdvantageScope_layout.json` from the top folder of your XbotEdu repository. This sets up tabs for viewing the robot. 4. Pick a tab at the top of the window.