View Single Post
  #9   Spotlight this post!  
Unread 03-02-2014, 18:18
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Ultrasonic analog input?

Quote:
Originally Posted by dvanvoorst View Post
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.
__________________
Spoiler for gif:
Reply With Quote