Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Sensors (http://www.chiefdelphi.com/forums/forumdisplay.php?f=173)
-   -   Vex Ultrasonic Range Module (http://www.chiefdelphi.com/forums/showthread.php?t=143328)

moomoomoo309 06-02-2016 17:06

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.

gblake 06-02-2016 20:52

Re: Vex Ultrasonic Range Module
 
Quote:

Originally Posted by moomoomoo309 (Post 1536116)
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?

moomoomoo309 11-02-2016 17:28

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!)


All times are GMT -5. The time now is 19:53.

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