Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   C++ Code doesn't seem to run from Eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=132740)

jfitz0807 13-01-2015 08:37

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.

Joe Ross 13-01-2015 12:19

Re: C++ Code doesn't seem to run from Eclipse
 
Can you post the output of the build console in eclipse?

jfitz0807 13-01-2015 12:46

Re: C++ Code doesn't seem to run from Eclipse
 
I'll try to do that tonight at our meeting.

Thanks.

cbf 13-01-2015 21:54

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?


All times are GMT -5. The time now is 12:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi