Log in

View Full Version : XL-Maxsonar-EZ mb1443 Programming Help


jagow100
16-01-2016, 11:11
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/4485/m/13809/l/241873-ultrasonic-sensors-measuring-robot-distance-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

Joe Ross
16-01-2016, 14:08
I'm pretty sure you didn't get that sensor from FIRST Choice.


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?

You are correct, you have to write your own class.

jagow100
18-01-2016, 17:16
I'm bumping this thread.