![]() |
|
#1
|
|||
|
|||
|
I am hoping someone has some advice. My team wrote a program management program to call their 5 missions. All of a sudden last night it started just exiting in the middle of the 1st mission, leaving the robot stranded in the middle of the table. This did not occur in the 1st 20 times they tested it and then all of a sudden it was happening frequently. They went back to using their backed-up version from 2 days earlier and all seemed well, but then at a practice competition today, during their 3rd run, it exited again. They had not made any changes or even re-downloaded the program the entire day.
My fear is that this is some kind of a weird software bug, memory issue, or problem with the brick which will be near impossible for the kids to diagnose and handle in time for our competition in 3 weeks. The inconsistency of it is the odd thing. They can handle dealing with it if it's somehow the program they wrote (though I looked at it and can't fathom how it could just exit in the middle of the program). Has anyone seen something like this happen or have any suggestions? They will of course run the mission on its own many times and then as part of the management program to see if the mission itself appears to be at fault. Unlikely though since it's probably been run hundreds of time on its own without issue. It exits in the middle of the myblock called to accomplish the rats between a motor and move block, seemingly between a move block and an unlimited motor block. Thanks! Natterbus Last edited by natterbus; 11-12-2011 at 02:44 PM. |
|
#2
|
|||
|
|||
|
We had something like that happen at a tournament last year. The problem was that the timeout on the NXT brick had been changed to 30 seconds. That appeared to cause the robot to shut off in the middle of the program. Didn't make a lot of sense to me that a timeout could happen while the robot was executing a program, but that is apparently how it works.
After the timeout was changed to a more reasonable 5 or 10 minutes, we didn't see the problem again. I believe there is actually an NXT-G block to control the timeout during program execution. |
|
#3
|
|||
|
|||
|
Quote:
If the STOP block is used, you may want to check the conditions that would cause it to execute and debug the program(s) that way. If you suspect it is memory problem, the best thing to do is upgrade the firmware (1.28 or higher) which clears all the memory on the nxt and then load the programs and hopefully this will fix the problem. |
|
#4
|
|||
|
|||
|
It is not powering off. Just showing the program name and the word run (but not running/cycling). There is a stop at the end of the myblock but it was supposed to be triggered after a "wait for the orange button". It does make sense that it is something screwy in that part of the program since I think that was a change made shortly before the problem started. It still doesn't make sense that it would happen inconsistently, but it is a good place to start. Thanks! Natterbus
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
Anytime we use an NXT button press, we follow it with a wait for the same button to be released. That keeps the team from inadvertently holding the button too long and triggering a second push somewhere else in the program...
We also don't ever stop the program (inside the code). The only way to stop it is to press the grey button on the NXT. At the end of the match, it sits at the menu waiting for the operator to press an arrow to select a program or the orange button to run it... Les Turner Coach, Bremen Botz! 318 |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
We have had trouble with "bumped". It works, but sometimes if you do a quick press, it will not register. It seems to always work better when the button is held for just an bit. Waiting for a press then waiting for a release is a good method.
|
|
#9
|
|||
|
|||
|
I don't think I have ever had "bumped" fail. Just how fast are you?
|
|
#10
|
|||
|
|||
|
I think it fails in the menu program my team uses, which is a simple loop with multiple switch blocks each looking for a button press (left, center, right, touch). Maybe you have to actually bump it while it is looking at that sensor? Don't know, but it has been an issue. If you hold the button and release it works fine, but a quick touch does not work every time. I have not measured the speed of the touch, but it is not so short as a jab. Closer to pressing a button on a remote control.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How Do You Track Program Versions? | esanjays | Programming | 12 | 12-08-2011 08:34 PM |
| Program problem | 2010FRC2343 | Robot | 3 | 02-09-2010 02:00 PM |