(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)
.