|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
roboRIO Command Based Problems
Has anyone else had problems with the roboRIO deleting Command Based code as soon as teleop is enabled? It's probably the worst problem we've had so far.
|
|
#2
|
||||
|
||||
|
Re: roboRIO Command Based Problems
What do you mean by deleting it?
If the robot code light is turning off then most likely you are not initializing something properly and are getting null pointer exception and crashing your program on the RoboRio. You can check the driver station log area for errors or you can do "Debug As" instead of "Run As" in eclipse. When your code crashes while debugging it will drop you in to the debugger with a stack trace showing you where the problem is. If you are still having problems after that then post your code and we can take a look at it. |
|
#3
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#4
|
||||
|
||||
|
Re: roboRIO Command Based Problems
What are the steps you are using to deploy your code to the RoboRio?
It is also possible that you are not initializing something properly in robotinit which runs before the robot is enabled. It is entirely possible that the code is getting deleted as you have suggested but the Robot Code light is indicative of whether or not your program is running oppose to if your program actually exists on the RoboRio. |
|
#5
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#6
|
|||
|
|||
|
Re: roboRIO Command Based Problems
Are you sure your code is not crashing? When your code crashes, the robot code light will turn off and a stack trace should be printed to the log window in the DS. I doubt it is actually being deleted.
|
|
#7
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
Long story short the lesson here is when in doubt reformat until it works! |
|
#8
|
|||||
|
|||||
|
Re: roboRIO Command Based Problems
Quote:
Instead of going for the reimaging/reformatting voodoo, you should troubleshoot your original problem using the tools suggested here by the people trying to help you. |
|
#9
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#10
|
|||
|
|||
|
Re: roboRIO Command Based Problems
Could it be that you are taking too long in a command's execute() function?
|
|
#11
|
||||
|
||||
|
Re: roboRIO Command Based Problems
We do occasionally and randomly get an error that says something about MotorSafetyHelper.h not updating fast enough on line 117, but there are two problems. One is that MotorSafetyHelper.h has no line 117, and we start running it. Any ideas?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|