View Single Post
  #2   Spotlight this post!  
Unread 19-02-2006, 14:28
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Distance calculations

http://www.chiefdelphi.com/forums/sh...amera+distance

Specifically
Quote:
The camera center to target center formula is similar:

camera to target angle = target pixel * (camera fov angle / camera pixels) - center pixel

Then combine:

bot to target angle = bot to camera angle + camera to target angle

This might also be helplful, but it is about how to calculate the angle to which one should fire.
http://www.chiefdelphi.com/forums/sh...e ra+distance
__________________