We acquired a mb1443 rangefinder from FIRST Choice. The mb1443 rangefinder uses a micro-USB output. When using the sample java code (found at:
https://wpilib.screenstepslive.com/s...e-to-a-surface) we received this error:
Unhandled exception: edu.wpi.first.wpilibj.util.AllocationException: Digital input 1 is already allocated at [edu.wpi.first.wpilibj.DigitalSource.initDigitalPor t(DigitalSource.java:36)
The screensteps for rangefinders states that if you are using serial there are no classes provided by WPI to handle it. Am I mistaken in believing that that means we will not be able to use a USB rangefinder without creating our own class? If I am mistaken, how would we fix the error we are receiving? If I am not mistaken, how would we even start creating our own class for such a thing?
Thanks in advanced,
Marcel