Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions RomiReference/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,29 @@
# Run the program
# ---------------
#
# To run the program you will need to explicitly use the ws-client option:
# Use the dedicated ROMI command:
#
# # Windows
# py -3 robotpy sim --ws-client
# py -3 -m robotpy run-romi
#
# # Linux/macOS
# python robotpy sim --ws-client
# python -m robotpy run-romi
#
# If your ROMI isn't at the default address, use --host/--port:
#
# python -m robotpy run-romi --host 10.0.0.2 --port 3300
#
# By default the WPILib simulation GUI will be displayed. To disable the display
# you can add the --nogui option
# you can add the --nogui option.
#

import os
import typing

import wpilib
import commands2

from robotcontainer import RobotContainer

# If your ROMI isn't at the default address, set that here
os.environ["HALSIMWS_HOST"] = "10.0.0.2"
os.environ["HALSIMWS_PORT"] = "3300"


class MyRobot(commands2.TimedCommandRobot):
"""
Expand Down
17 changes: 8 additions & 9 deletions XrpReference/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,29 @@
# Run the program
# ---------------
#
# To run the program you will need to explicitly use the XRP option:
# Use the dedicated XRP command:
#
# # Windows
# py -3 robotpy sim --xrp
# py -3 -m robotpy run-xrp
#
# # Linux/macOS
# python robotpy sim --xrp
# python -m robotpy run-xrp
#
# If your XRP isn't at the default address, use --host/--port:
#
# python -m robotpy run-xrp --host 192.168.42.1 --port 3540
#
# By default the WPILib simulation GUI will be displayed. To disable the display
# you can add the --nogui option
# you can add the --nogui option.
#

import os
import typing

import wpilib
import commands2

from robotcontainer import RobotContainer

# If your XRP isn't at the default address, set that here
os.environ["HALSIMXRP_HOST"] = "192.168.42.1"
os.environ["HALSIMXRP_PORT"] = "3540"


class MyRobot(commands2.TimedCommandRobot):
"""
Expand Down
Loading