File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed
Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 2222# Run the program
2323# ---------------
2424#
25- # To run the program you will need to explicitly use the ws-client option :
25+ # Use the dedicated ROMI command :
2626#
2727# # Windows
28- # py -3 robotpy sim --ws-client
28+ # py -3 -m robotpy run-romi
2929#
3030# # Linux/macOS
31- # python robotpy sim --ws-client
31+ # python -m robotpy run-romi
32+ #
33+ # If your ROMI isn't at the default address, use --host/--port:
34+ #
35+ # python -m robotpy run-romi --host 10.0.0.2 --port 3300
3236#
3337# By default the WPILib simulation GUI will be displayed. To disable the display
34- # you can add the --nogui option
38+ # you can add the --nogui option.
3539#
3640
37- import os
3841import typing
3942
4043import wpilib
4144import commands2
4245
4346from robotcontainer import RobotContainer
4447
45- # If your ROMI isn't at the default address, set that here
46- os .environ ["HALSIMWS_HOST" ] = "10.0.0.2"
47- os .environ ["HALSIMWS_PORT" ] = "3300"
48-
4948
5049class MyRobot (commands2 .TimedCommandRobot ):
5150 """
Original file line number Diff line number Diff line change 2222# Run the program
2323# ---------------
2424#
25- # To run the program you will need to explicitly use the XRP option :
25+ # Use the dedicated XRP command :
2626#
2727# # Windows
28- # py -3 robotpy sim - -xrp
28+ # py -3 -m robotpy run -xrp
2929#
3030# # Linux/macOS
31- # python robotpy sim --xrp
31+ # python -m robotpy run-xrp
32+ #
33+ # If your XRP isn't at the default address, use --host/--port:
34+ #
35+ # python -m robotpy run-xrp --host 192.168.42.1 --port 3540
3236#
3337# By default the WPILib simulation GUI will be displayed. To disable the display
34- # you can add the --nogui option
38+ # you can add the --nogui option.
3539#
3640
37- import os
3841import typing
3942
4043import wpilib
4144import commands2
4245
4346from robotcontainer import RobotContainer
4447
45- # If your XRP isn't at the default address, set that here
46- os .environ ["HALSIMXRP_HOST" ] = "192.168.42.1"
47- os .environ ["HALSIMXRP_PORT" ] = "3540"
48-
4948
5049class MyRobot (commands2 .TimedCommandRobot ):
5150 """
You can’t perform that action at this time.
0 commit comments