Fej
12-03-2014, 13:19
Hey guys.
For a while, we have been trying to get the VEX Ultrasonic Rangefinders to work. We're pretty sure they were plugged in correctly - one digital input and one digital output on the digital sidecar - but we swapped them anyway just to be sure. No dice. We flipped the connectors themselves as well, still nothing. The output changed from zero to infinity, though.
The code is in Java, and it's very simple. We just create an instance of Ultrasonic with the digital input/output pins as arguments, and then put getRangeInches() in the command loop.
Is there anything you guys can think of that we may have done wrong?
Thanks!
For a while, we have been trying to get the VEX Ultrasonic Rangefinders to work. We're pretty sure they were plugged in correctly - one digital input and one digital output on the digital sidecar - but we swapped them anyway just to be sure. No dice. We flipped the connectors themselves as well, still nothing. The output changed from zero to infinity, though.
The code is in Java, and it's very simple. We just create an instance of Ultrasonic with the digital input/output pins as arguments, and then put getRangeInches() in the command loop.
Is there anything you guys can think of that we may have done wrong?
Thanks!