Go to Post Wait - a single message outlining the vast majority of where to find controls stuff? Goodness. What will they think of next. - Tom Line [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-04-2016, 20:42
codetheweb's Avatar
codetheweb codetheweb is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Chaska
Posts: 6
codetheweb is an unknown quantity at this point
Smart Dashboard not connecting to robot (Python)

(I'm not completely sure if this is an issue related to Python, so that's why it's not in the sub-forum.)

Python code running on the robot posts values to the SmartDashboard network table; but it never appears in the SmartDashboard or the newer SFX. The connection indicator also is red in both programs. I can verify the values are getting published by opening OutlineViewer. I've tried getting the dashboards to work with 2 different computers, and neither work (but both work for controlling the robot).

I've recently updated the pyfrc version, and upgraded to the pre-release version of pynetworktables.

I'm really stumped at this point, as it does not seem to be a problem with the code, computer, or network. Any tips on what to try?

Here's the relevant code:
Code:
import wpilib

from wpilib import SmartDashboard

class MyRobot(wpilib.SampleRobot):
    def robotInit(self):
        SmartDashboard.putString("Hello", "World")

if __name__ == "__main__":
    wpilib.run(MyRobot)
.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi