View Single Post
  #2   Spotlight this post!  
Unread 20-03-2006, 21:38
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: Changing the search pattern

I had a similar problem aswell. Go to tracking.h and put this code right under where it says

///////////////////
// //
// search code //
// //
///////////////////

The old values are commented out. What this does is it ensures that even if the camera sees a glimpse of the light, and loses it, it will stay at it's current value and keep searching if it loses it. But once it finds it, it functions normally and tracks the light. It's a nice quick fix . Enjoy!

new_search = 0;
//temp_pan_servo = 0;
temp_pan_servo = (int)PAN_SERVO;
//temp_tilt_servo = TILT_CENTER_PWM_DEFAULT;
temp_tilt_servo = (int)TILT_SERVO;
__________________
www.sabrerobotics.com