Thread: No Robot Code
View Single Post
  #10   Spotlight this post!  
Unread 18-01-2017, 12:07
beardo17 beardo17 is offline
Registered User
FRC #6121
 
Join Date: Jan 2017
Location: Grayling, MI
Posts: 6
beardo17 is an unknown quantity at this point
Re: No Robot Code

Quote:
Originally Posted by AustinShalit View Post
You are using static initialization. This means you do not know what order Objects are going to be created in. For example, in your DriveSubsystem on line 19 you call Robot.oi.getX(). Robot.oi is null and has not been created yet.

The easiest way to fix this is to create your robot project with RobotBuilder.
I'm not sure I quite know what you mean.. If I remove Static from it, will that fix it? (I currently don't have the robot to test on)
Reply With Quote