|
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
|