Thread: IR Seeker help?
View Single Post
  #2   Spotlight this post!  
Unread 23-09-2011, 18:34
EricH's Avatar
Happy Birthday! EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,780
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: IR Seeker help?

Here's a simple test: Set up the rangefinder (the proper name, BTW) at one end of a tape measure, attached to your controller, which is printing out the readings from that sensor to a screen. Put a target at some short distance, say 6", and note what the reading is. Move the target to some other distance within range and note the reading then. That will give you a couple of calibration points. Repeat as needed (you want several points), and plot all the points. You should be able to generate an equation for distance based on reading. Then all you need to do is use that equation in your code.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote