Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 554 Bytes

File metadata and controls

30 lines (22 loc) · 554 Bytes

NT Viewer Python

A Simple NetworkTable Viewer made by Quick Chang

FRC Team 8585 in Taiwan

This repository is licensed under MIT Licence

NT temporary server

For testing only

from networktables import NetworkTables
import time
n = NetworkTables.create()
n.initialize()
sd = n.getTable("SmartDashboard")

s=n.getTable("/SmartDashboard/StupidDashboard")
s.putNumber("a", 1)
s.putString("b", "OAO")

i = 0
while True:
    sd.putNumber("robotTime", i)
    print("robotTime:", sd.getNumber("robotTime", -1))
    time.sleep(1)
    i += 1