Originally Posted by jimfl014
Has anyone had any experience with this distance sensor? Although this sensor is inexpensive, for us it might be technically expensive as the API is C only and we are a Java shop.
Originally Posted by tjf
You'd just need to use the address REV lists on the product page, being 0x52.
The C API is provided by ST, the sensor chip's manufacturer. In FTC, this API is simplified and ported into the Java SDK by the FTC developers. Using this sensor in FRC would require porting the library to Java, LabVIEW, or C++. We do not have ported FRC libraries at this time, but here are some resources that can get you started:
For the FTC SDK, you would need to unpack the Hardware-release-sources.jar
file. You will find the sensor related Java file in the following path:
An alternative to connecting the sensor directly to the roboRIO and porting the libraries would be to use the sensor with a co-processor, like an Arduino, and use the libraries that already exist.