View Single Post
  #11   Spotlight this post!  
Unread 04-02-2006, 11:08
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Who has the camera working?

I got it working! Kevin coded it to tilt the wrong way when it found the target. To fix this go to tracking.c. In the servo track function, find the y-axis/ tilt tracking code. Where it assigns the tilt error, multiply the whoole subtraction problem by -1. THen go down and find the two places where it assigns 1 or -1 to the step in a division erro occurs and reverse them. That should fix the problem.