Go to Post I in all sincerity thoroughly enjoy the way that programming for FIRST makes me want to bash my head against a wall. - pogenwurst [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
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 06-02-2016, 17:06
moomoomoo309 moomoomoo309 is offline
Registered User
FRC #0224
 
Join Date: Jan 2016
Location: Piscataway
Posts: 9
moomoomoo309 is an unknown quantity at this point
Vex Ultrasonic Range Module

We tried finding distance using this module, and after connecting it correctly, it keeps either not working (isRangeValid() is false, returns 0 on getRangeInches() and getRangeMM()) or returning infinity (isRangeValid() is true, returns Double.POSITIVE_INFINITY (the infinity symbol) from getRangeInches() and getRangeMM()). Has anyone else had luck getting one of these working in Java? It's hooked up to the DIO ports currently.

Last edited by moomoomoo309 : 06-02-2016 at 17:10.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2016, 20:52
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,934
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: Vex Ultrasonic Range Module

Quote:
Originally Posted by moomoomoo309 View Post
We tried finding distance using this module, and after connecting it correctly, it keeps either not working (isRangeValid() is false, returns 0 on getRangeInches() and getRangeMM()) or returning infinity (isRangeValid() is true, returns Double.POSITIVE_INFINITY (the infinity symbol) from getRangeInches() and getRangeMM()). Has anyone else had luck getting one of these working in Java? It's hooked up to the DIO ports currently.
Is there a good target in front of it? If yes, at what distance?
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2016, 17:28
moomoomoo309 moomoomoo309 is offline
Registered User
FRC #0224
 
Join Date: Jan 2016
Location: Piscataway
Posts: 9
moomoomoo309 is an unknown quantity at this point
Re: Vex Ultrasonic Range Module

I placed it facing towards the floor, within a few inches (<10). It continued to return ∞. I rebooted the robot, and hasDistance() returned false, and it returned 0 again. (I haven't changed how I wired this sensor!)
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 02:28.

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