|
rbayer: I have a feeling I'm getting on your bad side because I seem arrogant. I am trying to create a stir and want to find out why some teams are doing the things they are doing. From this discussion, I have gained some valuable information, and am thinking a little harder about our team's autonomous code.
I know it isn't the loop that takes the resources, its remembering what happend over the last X amount of seconds that would take a bit of memory. For that matter, our autonomous code uses 2 bytes right now too.
As for the line tracking code. Is it really that complicated to have two sensors looking down on the carpet, one on the left and right, when one goes off - say the right, that means your robot needs to turn to the right(right motor speed slower or left faster)? Of course it needs to go fowards otherwise(no sensors triggered) I know that would have a serious flaw if the wire mesh causes the sensors to go off, but I haven't been able to test on a working drive train.
About what Jeff W said - if you notice I didn't reply to him. If his robot is heavy enough to not really slip when it hits another robot, then most likely his dead reckoning code will be reliable. And I don't know whats best for every team. I just want to know why teams are doing this and that. I felt the best way to get that out was by pointing out what might be wrong with it and have them tell me why it wouldn't be an issue, or maybe they did overlook what I brought up. I know you must be an accomplished programmer based on the RoboEmu that you wrote.(i think you wrote) If I were to parallel what I mean to application programming. What I meant is that, in program, you don't always want to have to test for every condition. Its better to think through the problem in a way that will solve itself while processing the data. If you check this and that condition, things just get too complicated, and usually certain stimuli fall into the same condition as something else not intended. Don't get me wrong, there are some clear cases that many if's are needed.
__________________
Ogun's Laughter is No Joke!!!
|