Quote:
Originally Posted by jdejoannis
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
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