Go to Post The magic is ALL in the mentors. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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: 429
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi