I will not function if you break my heart.
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 Yesterday, 21:14
charlier999's Avatar
charlier999 charlier999 is offline
Registered User
FRC #1662 (Raptor Force Engineering)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2013
Location: Lodi, CA
Posts: 22
charlier999 is an unknown quantity at this point
Angry Deploy Successful, Rio said "No Robot Code"

I have been dealing with code deploying. I deploy the code, consel says Build Successful, & drive station & Rio saying "No Robot Code".

I did everything: updating WPIlib plugin, updating WPIlib.h, Flashing Rio, checking connections, deploying from other computers. But none of that worked.

But, when I put in a previous version of the robot code, it worked and deployed. The only diffrence between the two versions, is that I used the Timer function inside of WPIlib.h in auto and telop. help?

PHP Code:
Click on the only GitHub result inside of the GitHub search results
[url="https://github.com/search?utf8=%E2%9C%93&q=FRC1662_RobotCode_2017"]https://github.com/search?utf8=%E2%9C%93&q=FRC1662_RobotCode_2017[/url] 
Thx.
Reply With Quote
  #2   Spotlight this post!  
Unread Yesterday, 21:16
charlier999's Avatar
charlier999 charlier999 is offline
Registered User
FRC #1662 (Raptor Force Engineering)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2013
Location: Lodi, CA
Posts: 22
charlier999 is an unknown quantity at this point
Re: Deploy Successful, Rio said "No Robot Code"

https://github.com/search?utf8=%E2%9...RobotCode_2017

here is the link again. didn't work in
PHP Code:
here 
Thx.
Reply With Quote
  #3   Spotlight this post!  
Unread Yesterday, 22:33
microbuns's Avatar
microbuns microbuns is online now
Registered User
AKA: Sam Maier
FRC #4917 (Sir Lancerbot)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Elmira, ON
Posts: 89
microbuns is an unknown quantity at this point
Re: Deploy Successful, Rio said "No Robot Code"

Can't guarantee this, but typically successful deploys followed by "no robot code" usually means you're hitting a null pointer error. My best guess, looking at your code, would be to move:
Code:
	double a_timenow = a_timer->Get();
	double s_timenow = s_timer->Get();
	double g_timenow = g_timer->Get();
Into the first lines of both AutonomousPeriodic and TeleopPeriodic (where you use the variables).
Reply With Quote
  #4   Spotlight this post!  
Unread Today, 11:40
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 164
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Deploy Successful, Rio said "No Robot Code"

Indeed 'no robot code' is almost always an indicator that your program crashed on the roboRio. Finding crashes can be frustrating. Suggestions:
- Inspect the code for using a pointer which you have not yet done a 'new' on and so it is invalid or NULL.
- Use printf() statements to see when you've reached certain parts of the code. This can be helpful but can also be troublesome as sometimes printf output doesn't reach the console over the network before the crash occurs. Beware.
- The BEST answer is to use the debugger. It's daunting at first, but an EXCELLENT method. use "Debug As" instead of "Run As" - once in the debugger, you can 'go' to run the code and typically the debugger will HALT at the line where the crash occurred and you're all set. Woohoo! (Your mileage may vary)

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
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 13:02.

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