View Single Post
  #2   Spotlight this post!  
Unread 12-01-2007, 09:24
itsme itsme is offline
Registered User
FRC #2217 (FOMH)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Israel
Posts: 86
itsme is an unknown quantity at this point
Re: CMU2Cam Degrees & more

Well, I can answer only your first question because I am programing in easyC and I don't know MPlabs as well.
for calculating the degrees you need to do the following:
1 degree=Tilt_range/Number_of_PWM

same thing for the pan.

The tilt range is the range of degrees the tilt/pan server can turn.
Number of PWM is 256 (0...255).

Last edited by itsme : 12-01-2007 at 09:57. Reason: changed ratio to range, ratio- wrong word