View Single Post
  #6   Spotlight this post!  
Unread 24-01-2003, 22:28
Cipher X's Avatar
Cipher X Cipher X is offline
Registered User
no team (Former SigmaC@t Member)
 
Join Date: Jan 2003
Location: Sunrise/Ft Lauderdale, FL
Posts: 39
Cipher X is an unknown quantity at this point
Send a message via AIM to Cipher X
Exclamation Freakin DEBUGS!!

All i got to say is that DONT use too many debug statements { I dont belive they tell you this in the manual}

I was writing code for a neighboring team {947} and they were using a potentionmeter and i was just testing it out seeing what values it was outputting. But on top of that i just wanted to make sure that i was getting all teh right inputs and i was giving out all the right outputs. By the end of it i wound up with like 13 {some stupid number} DEBUG statements. Now all of a sudden the Revolving light turn off and on and all the motors work and then doesnt work and then works etc.. Now i took out all the Debug statements and everything worked fine. I think its because the timing for the DEBUG statements is too long and maybe too many of them makes the whole loop go so much slower that the controller looses its timing i guess. only thing i could think off. But remember try not to use more than like 10 DEBUG statements Max at once. I dont know if PBasic 2.5 fixes this but i am pretty sure it doesnt i have tried it out yet.

Cipher X
__________________
"Whatever you do will be insignificant, but it is very important that you do it."
-Mahatma Gandhi