|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Programming Error
If the Run button doesn't stay black, then it might have run through a single pass then stopped.
In any case that's certainly why your joysticks don't respond. The program isn't running. Try pushed the run continous button instead. It should look something like this while it's running: Last edited by Mark McLeod : 25-02-2009 at 14:24. |
|
#17
|
|||||
|
|||||
|
Re: Programming Error
You have a While loop that should normally, by default, keep you running when the Run button is pushed.
The default for such a loop is "Stop if True" (looks like the left picture below). Did you by any chance change it to a "Continue if True" (the middle picture)? Either type can be used, but you have to be careful to have the correct default value going in. In one case it should default to True, while in the other it should default to False. That's a common reason for the program to run only once (taking only milliseconds to complete). People sometimes change the loop type, but forget to reverse the default True/False. In the middle case below, the loop will run only once (very fast) because the button feeding it would have to be held down to make it loop. For instance, the third picture is what the Basic Framework uses and it keeps the loop going because it defaults to True and uses "Continue if True." Last edited by Mark McLeod : 25-02-2009 at 15:43. |
|
#18
|
|||
|
|||
|
Re: Programming Error
We have no idea why but it seems to be working now. We are deeply mystified by the complexity of this black box.
A special thanks because except for a constant change the code worked the first time out, including the autonomous. When we get back from Traverse City I will email to talk about a switch box on the robot for autonomous. We did have to replace both the spike relay's as pop riviting them is not good for them. Thanks so very much. We would have never gotten it without you. I hope your root canal went fine. What events are you going too? |
|
#19
|
|||||
|
|||||
|
Re: Programming Error
It's easiest to take a black box one small piece at a time as you are doing.
Understanding then has a chance to grow. Practice making the download of your code permanent before you get there tomorrow. My root canal went quickly. When you need to have root canal it's a relief to get it. I was in quite a bit of pain this past week. I feel great ever since they gave me novocaine. It's wearing off, but all the pain is gone. One of my teeth got damaged when I unwisely had a wisdom tooth removed, but now they fixed it. We'll be at NYC, then SBPLI, and finally Championships. It's hard to raise all the money necessary, but well worth it Good luck at Traverse City! |
|
#20
|
||||
|
||||
|
Re: Programming Error
I've seen this, or a very similar, error message when working with one of the former teams I used to mentor. They had removed all of their modules from the cRio and then replaced them in random locations. (They thought the slots were all on a bus and didn't realize the FPGA was coded for specific modules in specific slots.) Could this be happening here?
|
|
#21
|
|||
|
|||
|
Re: Programming Error
Quote:
I only really know programming and this year not even that. |
|
#22
|
|||
|
|||
|
Re: Programming Error
Quote:
We have a huge file of notes, I am going over it now. I will practice that in the morning. We are lucky that there are several teams going to TC that are usually real good. Glad you feel better. I am still nervous we will get there and things will go haywire. |
|
#23
|
|||
|
|||
|
Re: Programming Error
Quote:
Good thing our second event is the last week of regionals/districts. We have a whole month to think and draw ideas. I already told them I want the switch for autonomous. Last edited by chinckley : 25-02-2009 at 20:14. |
|
#24
|
||||
|
||||
|
Re: Programming Error
Analogs in Slot 1&2, Digital I/O's in 4&6 and Digital source in 8, I believe.
|
|
#25
|
|||
|
|||
|
Re: Programming Error
Thanks, I'll check in the morning.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code error causing robot to go into programming mode. | MJD | Programming | 14 | 30-10-2007 14:21 |
| CMU / RC / programming error | N7UJJ | Programming | 3 | 18-02-2005 17:05 |
| yet another programming error | hawk_11 | Programming | 2 | 13-02-2005 15:57 |
| programming error | agenova | Programming | 1 | 20-02-2002 13:00 |