View Single Post
  #26   Spotlight this post!  
Unread 13-02-2007, 16:01
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Camera Code Update

Quote:
Originally Posted by jdejoannis View Post
Are you sure? I believe its line 339 that pertains to the initial position for a new search. Line 365 is for when the tilt has exceeded its max.
Both lines of code return the tilt servo to the starting tilt angle, which may or may not be zero. The code as it is currently configured, does not change the tilt angle from 30 degrees because the vertical field of view of the camera from that angle can see the light from most of the field, including the entire starting area.


Quote:
Originally Posted by jdejoannis View Post
Tilt_Min_PWM is not mentioned even once within the search portion of the code.
Yes, I know. Tilt_Min_PWM is only used by the tracking algorithm to establish the minimum PWM value that the tracking algorithm will attempt to drive the servo to. Tilt_Center_PWM establishes the same baseline while tracking.

I realize that this may be confusing, so perhaps I need to consider changing the name(s) to something else.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org