View Single Post
  #4   Spotlight this post!  
Unread 21-01-2015, 09:47
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 430
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Unhandled exception instantiating robot - Code Not Showing on driver station

Looking at your Robot.java. it looks like you are accessing accessing subsystems that are stored within the OI class?

You also never actually initialize your oi variable. So if you're likely running into dependency issues which are causing runtime errors.

Instantiate your subsystems within the Robot class.
Instantiate oi in robotInit(), then instantiate any commands after this.

If you need an example of how drivetrain code should be laid out in a command base robot project, there's a foot example here from team 3019:
https://github.com/fauge7/Firebird-R...team3019/robot
__________________
http://team2168.org

Last edited by otherguy : 21-01-2015 at 09:55. Reason: added link to example code
Reply With Quote