Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Robot Not Recieving Code (http://www.chiefdelphi.com/forums/showthread.php?t=98537)

Ross3098 30-11-2011 07:50

Robot Not Recieving Code
 
Ive recently brought the robot out of the garage in a sense and wanted to start tinkering with it. I downloaded the latest windriver update on FIRSTforge and reimaged the cRIO for image v30. I downloaded code to the robot and it recieved the code, but I accidently downloaded an empty project so it wasnt able to do anything. I then set the downloader to the right code to download and used the deploy button to download. It undeployed and deployed like it should. After I rebooted the robot there was no robot code.

Anyone know how to fix this problem I can't think of anything I did wrong in setting this up.:confused:

Mark McLeod 30-11-2011 09:18

Re: Robot Not Recieving Code
 
Use netconsole to see where your code is immediately dying.
I haven't seen v30 for the cRIO, so I'll have to go looking for that.

Joe Ross 30-11-2011 11:28

Re: Robot Not Recieving Code
 
Quote:

Originally Posted by Mark McLeod (Post 1087563)
I haven't seen v30 for the cRIO, so I'll have to go looking for that.

It's in the offseason updates that fix the encoder rate problem. http://firstforge.wpi.edu/sf/frs/do/...1_0_for_2011_f and http://firstforge.wpi.edu/sf/frs/do/...ate_for_2011_f

Ross3098 30-11-2011 12:52

Re: Robot Not Recieving Code
 
Quote:

Originally Posted by Mark McLeod (Post 1087563)
Use netconsole to see where your code is immediately dying.

Could you tell me how to set up netconsole?:ahh:
Sorry I've never had this problem so I've never had to use it.

Mark McLeod 30-11-2011 14:45

Re: Robot Not Recieving Code
 
The cRIO gets setup for NetConsole by a selection in the cRIO Imaging Tool
  • Enable NetConsole
NetConsole on your PC gets installed as part of the FRC Utilities package. You should find it on your Windows Programs list, it'll be listed as NetConsole for cRIO.
Make sure your PC netmask on the connection you're using is set to 255.0.0.0, because NetConsole broadcasts.

calcmogul 17-12-2011 14:55

Re: Robot Not Recieving Code
 
My team just recently had this problem and solved it. Our code was being deleted after a power cycle because some functions weren't overridden in the C++ robot code. The RobotInit() virtual function was causing our problem. The cRIO outputted these functions to a console, like NetConsole, when overriding was required with a message similar to "RobotInit(): override me!".


All times are GMT -5. The time now is 17:50.

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