Skip to content

Commit 60e5846

Browse files
authored
Update Romi IP Address instructions for 2022 (#1699)
Change from picture to RLI so this will be caught in the future
1 parent 50cd524 commit 60e5846

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Binary file not shown.

source/docs/romi-robot/programming-romi.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@ Once the robot project is generated, it is essentially ready to run. The project
3636

3737
One aspect where a Romi project differs from a regular FRC robot project is that the code is not deployed directly to the Romi. Instead, a Romi project runs on your development computer and leverages the WPILib simulation framework to communicate with the Romi robot.
3838

39-
To run a Romi program, first, ensure that your Romi is powered on. Next, connect to the ``WPILibPi-<number>`` WiFi network broadcast by the Romi. If you changed the Romi network settings (for example, to connect it to your own WiFi network) you may change the IP address that your program uses to connect to the Romi. To do this, open the ``build.gradle`` file and update the ``envVar`` line to the appropriate IP address.
40-
41-
.. image:: images/programming-romi/romi-vscode-ip-address.png
39+
To run a Romi program, first, ensure that your Romi is powered on. Next, connect to the ``WPILibPi-<number>`` WiFi network broadcast by the Romi. If you changed the Romi network settings (for example, to connect it to your own WiFi network) you may change the IP address that your program uses to connect to the Romi. To do this, open the ``build.gradle`` file and update the ``wpi.sim.envVar`` line to the appropriate IP address.
40+
41+
.. rli:: https://raw.githubusercontent.com/wpilibsuite/vscode-wpilib/v2022.2.1/vscode-wpilib/resources/gradle/javaromi/build.gradle
42+
:language: groovy
43+
:lines: 35-38
44+
:linenos:
45+
:lineno-start: 35
46+
:emphasize-lines: 2
4247

4348
Now to start your Romi robot code, open the WPILib Command Palette (type :kbd:`Ctrl+Shift+P`) and select "Simulate Robot Code", or press :kbd:`F5`.
4449

0 commit comments

Comments
 (0)