Go to Post I am the Evil Empire of FIRST!!! - Andy Grady [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-02-2016, 01:12
kingnyancatjack's Avatar
kingnyancatjack kingnyancatjack is offline
Registered User
AKA: Tommy Zhu
FRC #2605 (Seamonster Robotics)
Team Role: Engineer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: Sehome High School
Posts: 1
kingnyancatjack is an unknown quantity at this point
Vision With GRIP

We have this code, but can't figure out why it doesn't work.
import wpilib
import networktables
from networktables import NetworkTable
class Vision():
def __init__(self):
# NetworkTable.setIPAddress("10.26.5.73")
# NetworkTable.setServerMode()
self.table = NetworkTable.getTable('GRIP/myContoursReport')

def printCenter(self):
self.centerX = networktables.NumberArray()
self.center = self.table.retrieveValue("centerX", self.centerX)
print("Center: " + str(self.center))

Please help.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi