Go to Post Being in FIRST and putting the focus on the robot is like building a robot and putting the focus on the bandsaw (or mill or lathe, or whatever you do your machining with). The robot is a tool we use to play the game, the game is a tool we use to inspire and teach. - GeeTwo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2007, 18:57
K.Porter's Avatar
K.Porter K.Porter is offline
Not So Random!
FRC #0172 (FALGOR)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Gorham, Maine
Posts: 68
K.Porter will become famous soon enough
Send a message via AIM to K.Porter Send a message via MSN to K.Porter
What's this number 80 in error math?

In some examples I've seen of tracking math, the error value is calculated by subtracting the centroid from 80. What does 80 mean? why is it 80?
  #2   Spotlight this post!  
Unread 24-01-2007, 19:54
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: What's this number 80 in error math?

Quote:
Originally Posted by K.Porter View Post
In some examples I've seen of tracking math, the error value is calculated by subtracting the centroid from 80. What does 80 mean? why is it 80?
Hey! I have family in Gorham, Cape Elizabeth and the family "camp" in on Lake Sebago. Sorry, I'm just happy to see some participation from Maine <grin>.

Anyway, this may have to do with the fact that on the horizontal axis, the center pixel is the 80th. That's my guess anyway. Where did you see this?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 25-01-2007, 17:38
K.Porter's Avatar
K.Porter K.Porter is offline
Not So Random!
FRC #0172 (FALGOR)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Gorham, Maine
Posts: 68
K.Porter will become famous soon enough
Send a message via AIM to K.Porter Send a message via MSN to K.Porter
Re: What's this number 80 in error math?

Well we figured out that the 80 has something to do with driving and gyros, which isn't what I'm doing at this time. However I now have another question. What is the range of the centroid values returned from the camera? 0-255?

[edit] oh and this is actually the lead programmer who's too lazy to make an account posting

[edit] upon printfing the x centroid, it only returns 0 regardless of the light. Any idea what is causing this?

Last edited by K.Porter : 25-01-2007 at 18:19.
  #4   Spotlight this post!  
Unread 25-01-2007, 18:28
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: What's this number 80 in error math?

Quote:
Originally Posted by K.Porter View Post
[edit] upon printfing the x centroid, it only returns 0 regardless of the light. Any idea what is causing this?
When the camera doesn't "see" the light it returns 0 for the centroid.
Closed Thread


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
Math.h sin syntax error Sykan Programming 8 21-01-2007 09:26
What's this dance song Kyle Fenton Chit-Chat 5 01-05-2006 21:28
What's happening to this program??? Weightmn General Forum 22 04-04-2005 15:40
What's this vCard thing? Brandon Martus CD Forum Support 1 02-12-2003 13:35


All times are GMT -5. The time now is 10: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