View Single Post
  #2   Spotlight this post!  
Unread 08-02-2012, 23:01
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: Can we use camera information in teleop?

There's no restriction against how much automation you program in.

For your application, you want to use the camera image to determine how far left or right the target is from where you want it to be. The difference will determine how much you want to rotate. You probably won't be able to rely on the image to be updated quickly enough to use it as the only sensor, so you will have to have a way of telling what direction you're facing. When you know how far you want to turn, add that to the current direction to get a target direction, and rotate until you reach the target. Update the desired direction each time you get a good result from the camera processing.
Reply With Quote