![]() |
Quote:
|
Quote:
Quote:
salik: it appears that whlc is the number of feet that you have traveled. Is that correct? How is this value computed? Are you reading it directly from your infrared sensor, is it being calculated in your program based on sensor readings? is it calculated in your custom circuit? One common cause of your program taking to long to execute a loop is too many debug statements. Are you using any anywhere else in your code? |
Quote:
My guess is that somewhere else you are doing one of 5 things: 1. getting stuck in an infinite loop 2. taking too long on part of your code. This could be caused by a loop that is ran multiple times or from several debug statements 3. skipping over your serout statement 4. you are using the serout statement incorrectly.(i.e. outputting to the wrong pin, etc.) 5. not looping back to your serin command. It is hard to say without seeing the rest of your code. If you could post all of the code, it would be very helpful in determining your problem. [edit] added a 5th item [/edit] |
| All times are GMT -5. The time now is 19:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi