View Single Post
  #3   Spotlight this post!  
Unread 19-03-2010, 08:29
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,661
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: [FTC]: [FTC]: [FTC]: Infared

I'm not sure about Labview semantics, yet here's a general structure. You'll want two constant global variables assigned to the intensities at the two extremes of distances -- i.e. one variable is the intensity at (e.g.) your starting position and the other is the intensity right up next to the center zone wall. From there it's a simple linear interpolation of intensity to range.

The problem we've found is that it's difficult to do that on the fly at the start of every match; there's barely enough time to avoid the defensive autonomouses as it is. So rather than pursue a calibration avenue, our autonomouses use the encoders and an intricate mapping routing to tell the distance to target. The IR sensor still serves the purpose of lining us up to fire.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote