Skip to content

Commit

Permalink
Add --dashboard flag back in
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jun 2, 2018
1 parent 20678f4 commit 08b1558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pynetworktables2js/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def init_networktables(options):
logger.info("Connecting to NetworkTables at %s", options.robot)
NetworkTables.initialize(server=options.robot)

#if options.dashboard:
# logger.info("Connecting to networktables in Dashboard mode")
# NetworkTables.setDashboardMode()
if options.dashboard:
logger.info("Connecting to networktables in Dashboard mode")
NetworkTables.setDashboardMode()

logger.info("Networktables Initialized")

Expand All @@ -66,8 +66,8 @@ def main():

parser.add_option('--team', type='int', help='Team number of robot to connect to')

#parser.add_option('--dashboard', default=False, action='store_true',
# help='Use this instead of --robot to receive the IP from the driver station. WARNING: It will not work if you are not on the same host as the DS!')
parser.add_option('--dashboard', default=False, action='store_true',
help='Use this instead of --robot to receive the IP from the driver station. WARNING: It will not work if you are not on the same host as the DS!')

parser.add_option('--identity', default='pynetworktables2js %s' % __version__,
help='Identity to broadcast to remote NT clients')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tornado>=4.0
pynetworktables>=2018.0.1
pynetworktables>=2018.2.0

0 comments on commit 08b1558

Please sign in to comment.