|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Camera HELP!
How did you get the Robot to "follow" the green light!
All i can do is get the camera to follow not the whole robot.... HELP! I have used both MPLab and Easy C |
|
#2
|
|||||
|
|||||
|
Re: Camera HELP!
You will have to program as in write code to that actually responds to the information you get from the camera. If you're using Kevin Watson's code, you get information such as blob size, dimensions and position of the light. You can use that information to track your robots position in respect to the light. Good luck.
More resources at: www.kevin.org/frc Last edited by Bharat Nain : 11-01-2007 at 18:42. |
|
#3
|
||||
|
||||
|
Re: Camera HELP!
the camera includes a servo-type meter that allows you to track the pan/tilt axis. The way you would make the robot follow the green light would be to find if the camera is left or right from center and have the motors turn right or left, respectively. It's fairly simple. PM me if you need more information or a coding example.
|
|
#4
|
|||
|
|||
|
Re: Camera HELP!
ok...... so what variables apply here to get the motors to respond...
and does anyone have a clue in using easy C? (I like easy C because it helps reduce the chance for error.....) |
|
#5
|
|||||
|
|||||
|
Re: Camera HELP!
I would like to point you to a few resources: http://www.chiefdelphi.com/forums/sh...ad.php?t=30976 - that thread is for people who are getting started with programming.
http://www.chiefdelphi.com/forums/fo...play.php?f=144 - that is where you will find posts regarding the camera. There are many sub forums dealing with different aspects of programming including easyC. Please visit those pages and it will answer most, if not all of your questions. Use the Search function above for specific information on a subject. Good luck. |
|
#6
|
|||
|
|||
|
Re: Camera HELP!
Hey Eric would you be able to post some coding on how you would be able to track the light by moving the robot, because I have been reading some of the posts and some people are saying to use trig. functions to calculate the movement of the robot towards the light. But I thought there would be an easier way. So if you would be helpful and maybe post a code to help me out.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera help needed | bluisnake | Programming | 9 | 08-08-2006 14:58 |
| Camera Help (New to Camera Programming) | Idaman323 | Programming | 6 | 14-01-2006 03:56 |
| camera help! | |20807 61|2|_ | Programming | 5 | 08-01-2006 14:44 |
| camera help needed | Anton | Programming | 0 | 17-02-2005 06:52 |
| Lost Camera- HELP | archiver | 2000 | 0 | 23-06-2002 22:41 |