|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Network Tables Issue
I'm trying to create a PID visualization system using python and matplotlib. I'm putting the values of the joystick on the smart dashboard but I'm unable to get the value through python using pynetworktables. Here's my code to access the values.
Code:
from networktables import NetworkTable
NetworkTable.setIPAddress("roboRIO-6203-frc.local")
NetworkTable.setClientMode()
NetworkTable.initialize()
table = NetworkTable.getTable("SmartDashboard")
left = table.getNumber("left")
I'm on the team network and I've confirmed that "left" is being published to the Smart Dashboard. Any reason why this isn't working? |
|
#2
|
||||
|
||||
|
Re: Network Tables Issue
Quote:
|
|
#3
|
|||
|
|||
|
Re: Network Tables Issue
Is there a way to check whether or not the connection has been made?
|
|
#4
|
||||
|
||||
|
Re: Network Tables Issue
Quote:
http://robotpy.readthedocs.io/projec...stener-example |
|
#5
|
|||
|
|||
|
Re: Network Tables Issue
Nice, thank you!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|