Your formula is probably more accurate, certainly for the sensor at hand. I used a lot of different sharp sensors (the analog one's) and learned that they are all different and that the reading is influenced by the reflective surface and also has some hysteresis - behaviour I did not expect from a triangular-measuring sensor.
Anyway, I started with a formulla y = a/x+b and later decided to keep B to 0 in most of the cases. Joep 2008/11/22, Sebastien LELONG <[EMAIL PROTECTED]>: > > > Take a constant (about 6000 iirc), divide it by the value read from > > the GP2d02 and the result is the distance in cm. > > Weird... Distances measured with this ranger are not linear. I tried to > compute curve function: > > http://sirbot.org/sirbot-modules/ir-ranger-board/ > > (at the end of the page) > > (and just for fun, my SirBot ranger using it: > http://sirbot.org/sirbot_labs/sirbot_labs/sirbot-ranger/) > > Seb > -- > Sébastien LELONG > http://www.sirloon.net > http://sirbot.org > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
