View Single Post
  #3   Spotlight this post!  
Unread 19-02-2006, 19:12
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: pan & tilt errors

Quote:
Originally Posted by itzrobz
Pan Error : 24
Tilt Error : 104

Can anyone help us make it so that the error is is closer to 0 and not 104?

Thanks
Are you sure the camera is locked on with those values? In tracking.c the algorithm uses the maximum number of pixels between the camera center and the target center as:
Code:
#define PAN_ALLOWABLE_ERROR_DEFAULT 6
#define TILT_ALLOWABLE_ERROR_DEFAULT 6
So anything higher than an error of 6 should mean the camera is not locked on to the target in the Servo_Track() function.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.