Mounting distance optical odometry sensor PAA5160E1

For FTC use, Sparkfun says to mount the PAA5160E1 optical odometry sensor exactly 10 mm from the foam tiles. Where is this 10 mm measured from? Is it from the glass surface of the sensor?

Also, do you have any code/routines (for example a time of flight measurement) that will measure the distance of the sensor from the ground surface?

Hi there,

Yes, 10mm is measured from the glass face of the sensor.

Unfortunately, the sensor does not have a way to measure the distance to the ground. You’ll just have to measure as best as you can. If you use the mount linked in our hookup guide, it has you measure the height of your chassis, then the model is procedurally updated to get the sensor to the right height.

Hope this helps!