Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   XL-Maxsonar-EZ mb1443 Programming Help (http://www.chiefdelphi.com/forums/showthread.php?t=141848)

jagow100 16-01-2016 11:11

XL-Maxsonar-EZ mb1443 Programming Help
 
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

Joe Ross 16-01-2016 14:08

Re: XL-Maxsonar-EZ mb1443 Programming Help
 
I'm pretty sure you didn't get that sensor from FIRST Choice.

Quote:

Originally Posted by jagow100 (Post 1524777)
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

Re: XL-Maxsonar-EZ mb1443 Programming Help
 
I'm bumping this thread.


All times are GMT -5. The time now is 07:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi