Thread: Example code
View Single Post
  #4   Spotlight this post!  
Unread 14-03-2006, 13:49
TEAM1949 TEAM1949 is offline
Registered User
FRC #1949
 
Join Date: Jan 2006
Location: IsRaEl
Posts: 24
TEAM1949 is an unknown quantity at this point
Re: Example code

Sorry I really didn't give any details.

The sensor itself works fine.


I need an example code which uses the gear-tooth sensor as a distance measure

My idea:

when the distance is X (found by the gear-tooth) the drive function stops the cart, the geear-tooth sensor "calibrates" to zero again and turns(I know how to do that)

I tried some varients how to do that but the gear tooth sensor didn't "calibrate" to zero and the cart didn't turn.

If someone think of an idea like this and can give an example how he did it I'll be glad