View Single Post
  #5   Spotlight this post!  
Unread 10-02-2009, 18:13
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Still can't get the camera to track

I might be wrong, but I think Jill wants to turn the whole robot instead of a turret. If so, you could just take the servo positions it calculates, subtract the ange that the program thinks is center, and turn your robot in the direction of the sign. If it's negative, turn right. If it's positive, turn left. You could use a set speed to turn at, or you could scale the degrees to motor speeds. Have a deadband so that once the value gets close to zero, the robot will stop turning.

Just a couple of thoughts off the top of my head, trying to think of the easiest way to do it.
__________________
Twitter Profile
Reply With Quote