View Single Post
  #11   Spotlight this post!  
Unread 19-02-2007, 14:43
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: Looping a function

Code looks alright to me. Try different things, eg.
  • Print TILT_SERVO itself - does it change?
  • Create a new variable to hold the distance and then print it
  • Use the (int) mask on the function and its argument
  • Make sure you are downloading the newly compiled hex and not some old version
  • Be nice to your eyes and include a \r\n in your print statement