View Single Post
  #5   Spotlight this post!  
Unread 14-02-2014, 11:51
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Analog Sensors Returning Incorrect Voltages

I'm not sure about an analog ultrasonic sensor, but the digital ones require you to tell it when to ping. With the Ultrasonic object, you can turn on an "automatic mode" that will continuously ping.

Code:
us = new Ultrasonic(2,3);
us.setAutomaticMode(true);
Reply With Quote