View Single Post
  #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