View Single Post
  #12   Spotlight this post!  
Unread 02-02-2006, 14:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How do you aim your shooter?

Quote:
Originally Posted by M. Krass
How do you compensate for the cams varying radius as it moves? The rate at which your pitch changes is never constant.
Many things are nonlinear in this system. Camera tilt angle is not proportional to distance. Distance is not proportional to the required pitch angle. Pitch angle can be, but is not necessarily, proportional to the cam position.

Fortunately, the nonlinearities are all irrelevant if you forego detailed computation and just make a simple lookup table that converts the measured camera tilt directly to the desired pitch adjustment. Creating that table is as easy as moving the robot forward and backwards, measuring the camera tilt, and manually tweaking the pitch adjustment until it works the way you want.