Go to Post You know, sometimes it is really cool to be a geek! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling all PHP/ASP programmers! blueWarrior FIRST-related Organizations 15 27-01-2004 13:24
My hints and guess on the Game in 2004! Elgin Clock Rumor Mill 116 09-01-2004 13:30
The Grand FIRST team.. programmers and others needed randomperson Programming 0 31-05-2003 23:46
PIC Programmers seanwitte Electrical 8 18-04-2003 17:04
Hints @ Kickoff Broadcast Nate Smith General Forum 13 05-01-2002 10:14


All times are GMT -5. The time now is 04:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi