View Single Post
  #7   Spotlight this post!  
Unread 27-01-2012, 08:43
austin1743 austin1743 is offline
Head Programmer - Java
FRC #1743
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Pennsylvania
Posts: 56
austin1743 is an unknown quantity at this point
Re: Backboard angle using vision tracking

Quote:
Originally Posted by DallonF View Post
I've been doing a ton of work on vision tracking and so far it's been going pretty well, but the main issue is that we don't want to shoot at the vision target - we want to shoot at the center of the hoop! We have the math working to adjust for that, but we need the angle of the backboard relative to the robot

We were thinking of using the apparent aspect ratio of the target to determine the angle (the target is 4:3, so if it appears to be 1:1, we should know we're at an angle). The problem with this is that A. we have no idea what direction we're facing the target at, and B. due to fisheye on the Axis 206 camera we're using, even when we're directly facing the target, if the target is toward the sides of the screen, it reports a ~20 angle.

Does anyone have any ideas on this?
Would you mind sharing your code on your doing this? I just need an example to show to the other programming people on my team to show them how it could potentially work.

thanks
__________________
Team 1743
Head Programmer