Go to Post If it were easy it wouldn't be worth triple the points, right? - SenorZ [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 03-02-2007, 17:16
Inoperational Inoperational is offline
Registered User
FRC #1506
 
Join Date: Jan 2007
Location: Michigan
Posts: 4
Inoperational is an unknown quantity at this point
Calculating Camera Distance

We have the camera set up on our robot, but we are having some very annoying problems. When we hook up our laptop to the rc, it shows the distance being anywhere between -30 to 67000. If anyone has any idea on the equation for calculating distance from the camera to the green cathodes, please post here. Thanks
  #2   Spotlight this post!  
Unread 03-02-2007, 17:36
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: Calculating Camera Distance

Kevin Watson has an idea, why not try here
http://kevin.org/frc/2007_frc_range_calc.pdf
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
  #3   Spotlight this post!  
Unread 03-02-2007, 18:04
Inoperational Inoperational is offline
Registered User
FRC #1506
 
Join Date: Jan 2007
Location: Michigan
Posts: 4
Inoperational is an unknown quantity at this point
Re: Calculating Camera Distance

we have that already and it is still not working
  #4   Spotlight this post!  
Unread 03-02-2007, 18:39
Skysong Skysong is offline
Registered User
FRC #0610
 
Join Date: Jan 2007
Location: Toronto
Posts: 2
Skysong is an unknown quantity at this point
Re: Calculating Camera Distance

Are you able to get different tilt angles when you move the robot manually towards the light? We did that as an initial test and had the robot stop when it was ten feet away from the light.

Are you using Kevin's default camera code? That seemed to work fine for us.
  #5   Spotlight this post!  
Unread 03-02-2007, 18:48
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Calculating Camera Distance

Make sure when you are printf'ing you cast the data as an unsigned int.
__________________
http://www.mikesorrenti.com/
  #6   Spotlight this post!  
Unread 03-02-2007, 18:57
The yellowdart's Avatar
The yellowdart The yellowdart is offline
Registered User
FRC #1506 (Metal Muscle)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Oakland County
Posts: 22
The yellowdart has a little shameless behaviour in the past
Re: Calculating Camera Distance

Where in the code is the angle defined?
  #7   Spotlight this post!  
Unread 04-02-2007, 23:48
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Calculating Camera Distance

Quote:
Originally Posted by The yellowdart View Post
Where in the code is the angle defined?
Look in terminal.c at the printf()s that print information when the camera has found a target. If you #include the camera header files, you can use the same information that is printed regarding the tilt angle. Just copy all of the math and assign it to a variable in your code.
__________________
What place are we at? ... TODAI!
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
calculating distance sur2124 Programming 10 15-03-2006 18:36
How do I get distance between Camera and the target? sjung9442 Programming 5 27-01-2006 09:44
Camera Tracking Maximum Distance MikeDubreuil Programming 0 18-01-2006 10:18


All times are GMT -5. The time now is 23:55.

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