Quote:
Originally Posted by dvanvoorst
With an Ultrasonic sensor, you need to either tell it to ping, or set it to automatic ping mode. Otherwise it will read maximum distance.
Add this to your robotInit():
distance.setAutomaticMode(true);
|
Doesn't work, no function setAutomaticMode with parameter boolean found in analog class.
EDIT: not exact words, but general meaning.