View Single Post
  #1   Spotlight this post!  
Unread 16-01-2016, 11:11
jagow100's Avatar
jagow100 jagow100 is offline
Registered User
FRC #3539 (Byting Bulldogs)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Romeo, Michigan
Posts: 13
jagow100 is an unknown quantity at this point
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
__________________
3539 Programming Lead
The Programming Lizard
Reply With Quote