Quote:
Originally Posted by AustinShalit
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)