|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
Long story short the lesson here is when in doubt reformat until it works! |
|
#5
|
|||||
|
|||||
|
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. |
|
#6
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#7
|
|||
|
|||
|
Re: roboRIO Command Based Problems
Could it be that you are taking too long in a command's execute() function?
|
|
#8
|
||||
|
||||
|
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?
|
|
#9
|
|||
|
|||
|
Re: roboRIO Command Based Problems
You are getting the MotorSafetyHelper error because you are not updating the motor outputs fast enough so the watchdog timer is expiring. If any execute method blocks for a long time, it will prevent all commands from running, therefore causing a watchdog timeout.
|
|
#10
|
||||
|
||||
|
Re: roboRIO Command Based Problems
Quote:
|
|
#11
|
|||||
|
|||||
|
Re: roboRIO Command Based Problems
That depends on what is making it take too long. We can guess at possible causes, but unless you show us your code we can't give confident help.
Post your code, as Kyle suggested in his first response. |
|
#12
|
||||
|
||||
|
Re: roboRIO Command Based Problems
I added the DriveBase subsystem, and the drive command to the post. Tell me what you think.
Last edited by King Nerd III : 02-03-2015 at 02:36 PM. Reason: added OI for oi->GetStickAxis |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|