Go to Post Though winning is not the end, that doesn't mean it's not important. - Michael Corsetto [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 16-01-2016, 14:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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 View Post
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2016, 17:16
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
Re: XL-Maxsonar-EZ mb1443 Programming Help

I'm bumping this thread.
__________________
3539 Programming Lead
The Programming Lizard
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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