|
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
|