|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
C++ Code is not detected by the robot
So this problem may sound a little strange, and I'm really not sure what the issue could be at this point, so I'll try to explain in the best way I can and hope that someone here can help us fix the problem. Simply put, when the code is deployed to the cRIO and then rebooted, the driver station fails to recognize any code on the robot. I know you're all going to say to try reverting back to an older version of the to ensure it's not a hardware issue, so let me put you at ease by saying I have already tried. Older versions of the code work. Specifically, the robot detects code on some older versions, but after someone people cleaned the wiring, none of the motors seem to work. I suspect this is unrelated, as we had the same issue before we cleaned the wiring when we tried implementing PID code. I created a new workspace and began implementing subsystems piece by piece until the issue appeared again. Our drive system works, our subsystem to get the ball works, but once the PID code is used, the problem reappears. However, if I work backwards from the completed code, and simply remove the PID subsystem, the issue remains. The driver station indicates no robot code, and it therefore cannot be used. I intend to post some of the code in question here soon. Particularly the PID code, which I have a poor understanding of to begin with.
Note that the code is command based, and the prime issue is almost certainly in the code itself. Any help here would be greatly appreciated. --Tim the Enchanter, 3950 (aka TK3950) |
|
#2
|
||||||
|
||||||
|
Re: C++ Code is not detected by the robot
The code is probably crashing. Use netconsole to see the output when it crashes, or run in the debugger.
|
|
#3
|
||||
|
||||
|
Re: C++ Code is not detected by the robot
Just wanted to share the most common things our team struggles with resulting in no code.
As Joe indicated you will need to watch NetConsole on boot up of the robot to determine the particular cause of your crash. |
|
#4
|
||||
|
||||
|
Re: C++ Code is not detected by the robot
Watch the robot start up in the netconsole. You may be seeing the infamous 24-bit relocation problem. If you see something about 24-bit relocation in the netconsole, recompile your code with the -mlong-call compiler flag (in the build properties of the project) and try to redeploy.
Good luck, Mike |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|