Go to Post Are quadcopter rotors considered a pneumatic device? - bobbysq [more]
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

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 4.25 average. Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 12-02-2015, 20:34
Phiction's Avatar
Phiction Phiction is offline
Registered User
FRC #2080 (Torbotics)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: United States
Posts: 8
Phiction is an unknown quantity at this point
Re: [C++] Eclipse deploying errors (FrcUserProgram)

Quote:
Originally Posted by bob.wolff68 View Post
One of the tricky things about FRC programming is that the "no robot code" indicator is sometimes a misnomer. I would say it is highly likely that your code deployed and ran ... and crashed. I have seen this many times with my students.

What to do? RIO_LOG - is your friend.... You should have a tab at the bottom area in Eclipse which is rio_log. Select it, clear it, and then re-deploy - and watch what happens. You will likely get useful information about the crash.

What if that doesn't work? Use the DEBUGGER - Screensteps will take you through it step by step, but the basic concept is instead of "run-as -> Deploy" you'll instead use "Debug-As -> Deploy" and after a few gyrations in trying to get it running the first time (I remember there being some popup dialogs and seemingly errors the first couple times), then the gdb debugger will run your program and if you're crashing, it'll break right where the crash is occurring. It's very cool.

Good luck and let us know!

bob
Thanks for your response Bob! We have looked at the rio_logs before and really couldn't find any useful information to guide us how to fix this issue. Or maybe I just dont know how to interpret it right.

We have tried debugging it many times, and that doesn't fix the problem either.

On the other hand. This seemed to fix our issue. At the top of our code(under the robot class), we had this line:

Quote:
double Distance = enc.GetDistance();
Because we thought we had to have this included to get the encoder distance for our lift system.

But after we removed it. We no longer had any errors relating to the FrcUserProgram.

Im not really sure why this fixed our problem. We occasionally still get the error "Remote command failed with exit status 1"

But the code deploys right. So we simply just ignore it. Thanks for everyones input! We greatly appreciate it!
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 13:13.

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