![]() |
Kevin's Code?
I really wish to know what does Kevin's code (bells and whistles version) exactly do?
does it Track the green light or that it just returns/sends out some information for the CMUCam? and if it tracks the green light, i wish to know were should I plug the servo PWM's to? Thanks in advance. |
Re: Kevin's Code?
KEvins code searches for light that falls within given parameters (the green light by default) and returns servo posistions to the robot controller. By default you should plug the Tilt servo int PWM 02 and the pan servo into PWM 01, You can read the Camera and tracking read me files included in his code for more information.
|
Re: Kevin's Code?
Thanks very much for the help. but 1 more question, I loaded that code on the RC, so does it only return the servo values, or that it also tracks that color (keeps it in the middle of the frame captured by the cmucam)?
Thanks again. |
Re: Kevin's Code?
If you do not have a window open, it will attempt to track the light, by default.
|
Re: Kevin's Code?
what do you mean by a "window open"?
|
Re: Kevin's Code?
Quote:
I believe what Andrew meant by an open window is a terminal window. Kevin's code feeds back, using printf commands, information to a terminal window that can be opened in the IFI loader. It will allow you to see the positioning data. By looking through the terminal.c and .h files, you will be able to find what values are being sent to the servos to tell them how to position the camera. Extrapolating this information, you should be able to use it to position your robot and ball launcher to hit the target you desire. :) |
| All times are GMT -5. The time now is 01:01. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi