|
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?
|