Go to Post To my surprise, purple painted air tanks were illegal last year. AB - Andy Baker [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-03-2010, 08:21
ProgramLuke's Avatar
ProgramLuke ProgramLuke is offline
Captain
AKA: Luke
FRC #2169 (KING TeC)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Prior Lake, MN
Posts: 144
ProgramLuke is an unknown quantity at this point
[FTC]: Infared

Quote:
It should be noted that there is variation from one sensor to another as well as from one Beacon to another. A calibration routine to compensate for these differences is highly recommended when using the Beacon intensity for determining distance to Beacon.
How do I run a calibration routine in Labview?
__________________
2012 Inaugural Minnesota State High School League State Champions
2012 Galileo Division Semifinalists
2012 Wisconsin Regional Finalists
2012 Wisconsin Regional Entrepreneurship Award
2012 Lake Superior Regional Chairman's Award
2012 Lake Superior Regional Champion
2012 Lake Superior Innovation in Control
2011 Championship Imagery Award
2011 Championship Archimedes Quarterfinalist
2011 Minnesota 10000 Lakes Finalists
2011 Lake Superior Regional Chairman's Award
2011 Lake Superior Finalists
2010 FTC World Championship Finalist
2010 FTC World Championship Edison Division Champion
2010 Minnesota 10000 Lakes Regional Chairman's Award
2009 Minnesota North Star Regional Chairman's Award
2008 Wisconsin Regional Finalist
2007 Wisconsin Regional Champion
Reply With Quote
  #2   Spotlight this post!  
Unread 21-03-2010, 12:44
buddyb's Avatar
buddyb buddyb is offline
Registered User
FRC #1885 (ILITE)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Haymarket, VA
Posts: 65
buddyb has a spectacular aura aboutbuddyb has a spectacular aura aboutbuddyb has a spectacular aura about
Re: [FTC]: Infared

My knowledge is limited, as I use RobotC, but I believe that the calibration routine must be made manually. I suggest that you just use a file to put the intensity from two different (predetermined) distances from the beacon. You can then use those readings in teleop (assuming the calibration was done in autonomous).

The best way to get the readings, in my opinion, would be to just slam in to the lower goal, get a reading, then go backward in to the wall, and get a reading. If you don't want to do this, you could even just get a reading while the robot is waiting to start autonomous. It would be a bit less accurate (read: one datapoint instead of two), but would still work.

For calculating distances, assuming that intensity/distance graph is linear, your equation is:
intensity[calibration]/dist[calibration]=intensity[current]/dist[current].

From this, you can do:
dist[current] = dist[calibration] * (intensity[current] / intensity[calibration])

If you did more than one calibration measurement, get an average of all of the readings and store that in the [calibration] variables.

Best of luck.
__________________
FRC - Team 1885 - Programmer.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Infared Sensor JohnFogarty Programming 0 02-03-2010 10:42
Infared in Next Year's Game Paradox1350 Rumor Mill 45 02-04-2004 20:45
Infared sensors???? Devastater Kit & Additional Hardware 1 21-02-2004 19:39
Infared Code TommyT Programming 1 11-01-2004 19:33
Infared Sensors on the field? Allison K Rules/Strategy 4 10-01-2004 20:42


All times are GMT -5. The time now is 18:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi