import time
from networktables import NetworkTables

rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program

def initTable():
	NetworkTables.initialize(server=rioIP)
	return NetworkTables.getTable(tableName)

def pushVals(table, jetsonVals):
	table.putNumberArray(jetsonVals)
	
	

import time
from networktables import NetworkTables



def initTable():
	NetworkTables.initialize(server=rioIP)
	return NetworkTables.getTable(tableName)

def pushVals(table, jetsonVals):
	table.putNumberArray(jetsonVals)


class NetworkInterface(object):
	"""docstring for NetworkInterface."""
	rioIP = '10.58.06.2' # this shouldn't change
	tableName = 'SmartDashboard' # should be same in rio's java NT program
	table = None

	def __init__(self):
		super(NetworkInterface, self).__init__()
		NetworkTables.initialize(server=rioIP)
		self.table = NetworkTables.getTable(tableName)

	def pushVals(jetsonVals):
		table.putNumberArray("JetsonVals",jetsonVals)

Put network table interface in class format