View Single Post
  #11   Spotlight this post!  
Unread 23-09-2003, 22:17
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
Fotoplasma has it right, and I like how Rob described the problem. I remember researching this, and if you look into the code, every time it sends out to the RC the new packet it sends "255,255" at the beginning to tell it that this is new information if I'm not mistaken. The purpose of this, is code has errors, it skips (delta_t counts how many times it's skipped for those that don't know) and when it skips, without that "255,255" it'll interpret the inputs as part of the line before, and we all know we don't want that. So when you have 255 run in another part of the robot, as someone put it, it does a dance, because it keeps translating the inputs into different areas and each time it errors (I believe) the outputs will swap again, so things go nuts. I'm not 100% sure about all of this, but this is the conclusion I came to awhile ago and I think that's what happens. But yea, swapping your 255 will almost ALWAYS fix that. Another trick if that doesn't work, stick a debug statement somewhere before the lines to output "hello" or something, just so you can tell if the code gets to that without having an error, then move the debug around to find the problem area, then you work with that area and sometimes it connects to something else and then you have to look at that as well. I hope this helps. Good luck!
__________________
Chopsaw? Chopsaw.