Go to Post ...It's like Christmas morning and waiting to see if Santa got you that soldering iron you wanted. - CLandrum3081 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2015, 21:50
akatt99 akatt99 is offline
Registered User
FRC #4810
 
Join Date: Feb 2015
Location: United States
Posts: 2
akatt99 is an unknown quantity at this point
'No Robot Code' Message After Seemingly Successful Upload

Hey everyone! I'm new on these forums, so please correct me if anything is not up to standard.

We're having a pretty big problem just days before this build season ends. We have programmed most of the aspects of our robot, and we need to test the robot and its full capabilities. We have a master project which contains all of the code merged together for the different parts of the robot's operation. We are able to build with no errors. The problems arise when deploying. Everything looks fine in the eclipse console when the code deploys; however, when the driver station is opened, we get the message saying 'No Robot Code.' Other projects deploy just fine. I don't believe it's a code issue, because multiple programmers have verified the code as correct, though I don't rule this out as a possible issue. I also don't think it's a project or workspace issue because the projects and workspaces have been switched multiple times for the same source code.

Any help would be appreciated.

Thanks!
  #2   Spotlight this post!  
Unread 14-02-2015, 21:53
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 610
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: 'No Robot Code' Message After Seemingly Successful Upload

Quote:
Originally Posted by akatt99 View Post
Hey everyone! I'm new on these forums, so please correct me if anything is not up to standard.

We're having a pretty big problem just days before this build season ends. We have programmed most of the aspects of our robot, and we need to test the robot and its full capabilities. We have a master project which contains all of the code merged together for the different parts of the robot's operation. We are able to build with no errors. The problems arise when deploying. Everything looks fine in the eclipse console when the code deploys; however, when the driver station is opened, we get the message saying 'No Robot Code.' Other projects deploy just fine. I don't believe it's a code issue, because multiple programmers have verified the code as correct, though I don't rule this out as a possible issue. I also don't think it's a project or workspace issue because the projects and workspaces have been switched multiple times for the same source code.

Any help would be appreciated.

Thanks!
Check to make sure your code has only possible ports for objects. The same thing happened to me when I tried using a gyro in port 3 rather than 1 or 0.
  #3   Spotlight this post!  
Unread 14-02-2015, 21:55
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumnus
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 541
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: 'No Robot Code' Message After Seemingly Successful Upload

Have you checked your logs in the driver station for any errors? It's common for the code to build and deploy and then say no robot code when really it is something like a null pointer exception(coding error) etc. that is causing it to fail.
  #4   Spotlight this post!  
Unread 14-02-2015, 21:57
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 142
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: 'No Robot Code' Message After Seemingly Successful Upload

This has happened to me when the code throws an Exception (or equivalent in non-Java code) at startup/initialization. Check for errors in the rioLog or the window on the driver station.
  #5   Spotlight this post!  
Unread 14-02-2015, 21:58
alopex_rex's Avatar
alopex_rex alopex_rex is offline
Rainbow Professionalism Dash
AKA: Scott Morton
FRC #0830 (The RatPack)
Team Role: Alumni
 
Join Date: Dec 2014
Rookie Year: 2012
Location: Ann Arbor, MI
Posts: 92
alopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond repute
Re: 'No Robot Code' Message After Seemingly Successful Upload

I've had this happen many many times, and it's always the result of a code issue. There are lots of things that won't cause compiler errors, but will cause the code to crash (and when the code crashes, the driver station will say there's no code.) Right after merging together a bunch of code is a prime time for errors to pop up. There's lots of things that could cause it; in the past it's often been variables that are used without being initialized, and this year we've done it with SmartDashboard (eg trying to read a variable that doesn't exist).

The best thing to do is often to comment out broad swathes of code, until it stops crashing, then to slowly add stuff in until you figure out what the problem lines are. If the separate parts worked by themselves, the natural first place to look would be the joints where they come together.

Hope this helps!
__________________
Ratpack programming lead 2013 - 2015

ἔκλαγξαν δ᾽ ἄρ᾽ ὀϊστοὶ ἐπ᾽ ὤμων χωομένοιο / αὐτοῦ κινηθέντος: ὃ δ᾽ ἤϊε νυκτὶ ἐοικώς. (Ancient Greek nerds unite!)
  #6   Spotlight this post!  
Unread 14-02-2015, 22:09
akatt99 akatt99 is offline
Registered User
FRC #4810
 
Join Date: Feb 2015
Location: United States
Posts: 2
akatt99 is an unknown quantity at this point
Re: 'No Robot Code' Message After Seemingly Successful Upload

Thanks for all the replies! I figured immediately after that some of the devices I was initializing as objects weren't hooked up yet, possibly causing errors when starting the code. I'll try re-deploying the code without these objects tomorrow to see if anything changes.
Closed Thread


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 21:11.

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