How to hook up KOP rangefinder

Do I just hook it to the analog breakout like in this picture?

But let your programmers know that they’ll have to write their own class that uses the analogchannel. This mainly pertains to java, not sure about other languages.

Yes, that will do it. You also don’t have to write your own class, per se, as everything in java can be coded almost like in C, although it would be beneficial.

Yeah, I do both electrical and programming in our 4 person team. So something like this:

float distanceToTarget = 0.0;
AnalogChannel *rangefinder;
rangefinder = new AnalogChannel(1);
rangefinder->getVoltage() * multiplier = distanceToTarget;