View Single Post
  #10   Spotlight this post!  
Unread 05-05-2008, 21:14
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,991
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Sonar Sensor help

Quote:
Originally Posted by gunsanbob View Post
which much easier to program
Easier than a single line?
Quote:
Originally Posted by eagleslg View Post
oh, so it should just be one easy line..
im using kevin's code, so Get_Analog_Value does not exist,
So write your own. It is just a single line to get an analog value, same as getting the value of a potentiometer. The FRC conrtroller gives 10 bits (0-1023) so your answer is in 1/4 inch increments.
Quote:
Originally Posted by eagleslg
when i put my finger right on the sensor
Too close, try 2 or 3 inches minimum.
__________________

I am N2IRZ - What's your callsign?