View Single Post
  #14   Spotlight this post!  
Unread 27-01-2009, 18:29
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Make servos faster

This is not neccesarily true--one can program a servo to work at a certain speed. For example, if you wanted a servo to move to the position represented by 1.0 from the position represented by -1.0. You could do this by
  1. Setting the servo to 1.0
  2. Using a loop to set the servo to -0.9, then -0.8, etc

If you're using the second method, you should be able to move your servos faster by increasing the amount they move per cycle.

Another thing to keep in mind is that if the you're getting a low frame rate due to processing delay, it's pretty easy for the target to leave the frame, since the system can't update the servos. Something you might want to try is predictive tracking--say, if the 10 previous frames have involved the target moving in a given direction, you can make an assumption and move your camera before processing based on an estimation of the movement speed.
__________________
Get yer robot source code here!