![]() |
Re: Programming Error
1 Attachment(s)
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: |
Re: Programming Error
3 Attachment(s)
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." |
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? |
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! |
Re: Programming Error
Quote:
|
Re: Programming Error
Quote:
I only really know programming and this year not even that. |
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. |
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. |
Re: Programming Error
Quote:
|
Re: Programming Error
Quote:
|
| All times are GMT -5. The time now is 20:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi