Go to Post A good robot with great strategy beats a great robot with good strategy. - Brian Maher [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2015, 14:44
dash121 dash121 is offline
Registered User
FRC #4085
 
Join Date: Oct 2014
Location: Reynoldsburg Ohio
Posts: 23
dash121 is an unknown quantity at this point
Re: Robot Initilization failure on deploy

You sir.. Have a logic error. You never connect up anything so the program is a dead program.. The error your getting is hoping you will go find the line in your code and debug it with the debugging window in eclipse. Set break points and find exactly what line.. I think you'll be amazed at where your logic error is. You have no type of speed controllers set. You have no place where your mechanum drive is hooked up to your motors. Try those first.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2015, 17:56
gastew15's Avatar
gastew15 gastew15 is offline
Registered User
FRC #3655 (tractor technicians)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Mason
Posts: 4
gastew15 is an unknown quantity at this point
Re: Robot Initilization failure on deploy

Quote:
Originally Posted by dash121 View Post
You sir.. Have a logic error. You never connect up anything so the program is a dead program.. The error your getting is hoping you will go find the line in your code and debug it with the debugging window in eclipse. Set break points and find exactly what line.. I think you'll be amazed at where your logic error is. You have no type of speed controllers set. You have no place where your mechanum drive is hooked up to your motors. Try those first.
This is all done in separate classes, the robot project is set up using the command template. I'm at least competent in Java, I just haven't ever seen such an ambiguous error before without any kind of line number to my code before, so I'm kind of confused as to what would cause it.

Last edited by gastew15 : 25-01-2015 at 18:22.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2015, 18:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Robot Initilization failure on deploy

Did you rename your class after creating the project?
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2015, 18:47
gastew15's Avatar
gastew15 gastew15 is offline
Registered User
FRC #3655 (tractor technicians)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Mason
Posts: 4
gastew15 is an unknown quantity at this point
Re: Robot Initilization failure on deploy

Quote:
Originally Posted by Joe Ross View Post
Did you rename your class after creating the project?
No, I left the main class' name the same. I do use EGit with eclipse though, so do you think it's possible that it might affect it in someway?
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2015, 18:55
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Robot Initilization failure on deploy

I don't know if this is causing this error, but I wouldn't instantiate OI twice like you're doing. I would only instantiate OI in robotInit(), where all subsystems are guaranteed to be constructed. If you change the line "public static OI oi = new OI()" to "public static OI oi", you may fix the problem.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2015, 19:01
gastew15's Avatar
gastew15 gastew15 is offline
Registered User
FRC #3655 (tractor technicians)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Mason
Posts: 4
gastew15 is an unknown quantity at this point
Re: Robot Initilization failure on deploy

Quote:
Originally Posted by Jared View Post
I don't know if this is causing this error, but I wouldn't instantiate OI twice like you're doing. I would only instantiate OI in robotInit(), where all subsystems are guaranteed to be constructed. If you change the line "public static OI oi = new OI()" to "public static OI oi", you may fix the problem.
Whoops, didn't even notice that... I made a new project and copied over the code and now also changed that double initialization like that. I'll have to see if it works or not tomorrow though. Thanks for spotting that silly mistake.

*Git also probably had nothing to do with it either, so that was a waste of time copying all that too, but oh well if it works I'll be a happy man.

Last edited by gastew15 : 25-01-2015 at 19:04.
Reply With Quote
Reply


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 22:27.

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