View Single Post
  #2   Spotlight this post!  
Unread 15-02-2007, 18:07
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: CMUcam communications with motors

Well, if you want to use the camera to interact with the motors you are going to have to understand the code. It is not so complicated if you go through the comments. To start off, do not worry about camera.c/h. The file you really need to look at is tracking.h/c.

There are two ways you can use the camera to adjust your drive train to a specific point. Either you use the servo values when it is centered on the light, or you use the camera target values. There is no way I can go through exactly how to write this code, but good luck figuring it out. It is fun.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson