Go to Post Remember kids, it's not about the speed of your drive train, it's how you use it - Michael Corsetto [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 13-01-2015, 08:37
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
C++ Code doesn't seem to run from Eclipse

We're new to C++ this year. We used Java last year. So far, we like Netbeans much better than Eclipse!

After finally working through all the Eclipse setup issues and getting our code to compile, it doesn't seem to run when deployed from Eclipse.

We're presently connecting to our roboRio via USB. We bought a second set of control system components and are using these for practice while our electrical team wires up our practice chassis.

If we log into the roboRio, we can see the deployed program. We can also execute it directly in the roboRio linux environment; however, if we deploy from Eclipse and then use the linux 'ps' command, the program does not appear to be running.

Any help is greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2015, 12:19
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,544
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: C++ Code doesn't seem to run from Eclipse

Can you post the output of the build console in eclipse?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2015, 12:46
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: C++ Code doesn't seem to run from Eclipse

I'll try to do that tonight at our meeting.

Thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2015, 21:54
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: C++ Code doesn't seem to run from Eclipse

We forgot to save the console buffer, but I can tell that the output was just like it shows in the documentation (http://wpilib.screenstepslive.com/s/...age_id=4999693, except that the [sshexec] line that's supposed to stay "stopped process" instead says it couldn't find a process to stop.
I'm a bit confused about the logic in /usr/local/frc/bin/frcKillRobot.sh. So it looks like this line fails:
Code:
/sbin/start-stop-daemon -K --pidfile $FRC_PID_FILE
I don't remember my C shell well enough, but if this start-stop-daemon command returns a non-zero error code, would it stop running the rest of the shell script? If that's what's happening then it would explain why the /usr/local/frc/bin/frcRunRobot.sh command further down never gets called.

Seems the logic is defective. Can't start a robot program if there wasn't already one running? Is there a setting we missed somewhere?
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 12:38.

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