View Single Post
  #2   Spotlight this post!  
Unread 11-02-2014, 18:32
irvingc irvingc is offline
Registered User
FRC #0948 (Newport Robotics Group)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Bellevue, WA
Posts: 31
irvingc is on a distinguished road
Re: Vision code in separate class?

The issue is probably that your VisionCode class still extends the SimpleRobot class. This is a problem because the default RobotBase constructor (from which SimpleRobot extends) is where NetworkTable initialization is conducted. You need to change your VisionCode class not to extend SimpleRobot. Depending on how familiar you are with Java, this might not be so straightforward. Is there a reason you can't just modify the VisionSampleProject robot code to fit your needs?
Reply With Quote