Go to Post You don't have to build a robot to be on a robot team. This isn't about the robot, it's about learning. - engunneer [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2015, 16:13
CoffeeFlux's Avatar
CoffeeFlux CoffeeFlux is offline
Registered User
AKA: Ryan Lucia
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2010
Location: United States
Posts: 5
CoffeeFlux is an unknown quantity at this point
Command-Based: No Robot Code

Hey everyone, I'm using a command-based bot, as my team has historically, but am having issues with this year's code.

When I just attempt to start it, or even restart the roboRIO, I get the "No Robot Code" error, and prints only "Launching /home/lvuser/FRCUserProgram". When I ssh in, the file FRCUserProgram exists, and when I run"/usr/local/frc/bin/netconsole-host /home/lvuser/FRCUserProgram" it simply prints out the same thing as it did on the DS. If I just attempt to run the program itself, I get a segfault, and the lack of gdb/gcc or the ability to connect the bot to the internet (thanks to my school) means that I'm unable to make use a of a debugger.

My code is available here: https://github.com/team422/FRC-15

For reference, I'm working in Eclipse and building the code on a Windows 8 laptop. Also, the roboRIO is capable of running code, as I put the "Getting Started" project on the bot and it successfully ran. Any help is greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2015, 16:27
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,557
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: Command-Based: No Robot Code

Have you tried the eclipse remote debugger? http://wpilib.screenstepslive.com/s/...-robot-program
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2015, 16:30
CoffeeFlux's Avatar
CoffeeFlux CoffeeFlux is offline
Registered User
AKA: Ryan Lucia
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2010
Location: United States
Posts: 5
CoffeeFlux is an unknown quantity at this point
Re: Command-Based: No Robot Code

Nope, I wasn't aware of that, thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2015, 17:50
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Command-Based: No Robot Code

Quote:
Originally Posted by CoffeeFlux View Post
, and the lack of gdb/gcc
because its not called gdb. It is called arm-frc-linux-gnueabi-gdb as it is a cross debugger. Though I would recommend using eclipse as that does all the proper magic for you to call arm-frc-linux-gnueabi-gdb
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2015, 12:06
one_each one_each is offline
Registered User
FRC #4057 (KB Bots)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2012
Location: Klamath Falls, Or
Posts: 25
one_each is an unknown quantity at this point
Re: Command-Based: No Robot Code

We were seeing the same behavior in our code. For us, it turned out to be accessing a (NULL) pointer before it was initialized.
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 02:45.

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