Go to Post It's The Hunger Games and those lucky teams are Prim. - Gregor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2006, 18:59
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
CMUCam with EasyC

We're a rookie team looking to do all of our programming in EasyC. Is there out of the box code to make the camera track the target in Easy C? If so, where can we get it?
  #2   Spotlight this post!  
Unread 12-01-2006, 21:50
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMUCam with EasyC

Quote:
Originally Posted by gabrielse
We're a rookie team looking to do all of our programming in EasyC. Is there out of the box code to make the camera track the target in Easy C? If so, where can we get it?
You might also ask this question in the easyC forum.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 12-01-2006, 22:12
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: CMUCam with EasyC

Please read the tutorials in the help file. It will bring you all way through programing the robot including the camera. The default camera values loaded into the software target the goal in this years competition.

(Could someone move this thread to EasyC?)
  #4   Spotlight this post!  
Unread 13-01-2006, 09:57
intelitek_Chris intelitek_Chris is offline
Registered User
no team
 
Join Date: Dec 2005
Location: Manchester
Posts: 19
intelitek_Chris will become famous soon enoughintelitek_Chris will become famous soon enough
Re: CMUCam with EasyC

I guess the answer to your question also depends on how you want to 'track' the target. If you just want the camera to return values about what it sees (specifically about the green target), than that is indeed built in 'out of the box'. You could write a simple program that initializes and then starts the camera. Then in a while loop, add a camera capture, print to screen, and a short wait statement. You should see the variable you captured printing in the terminal window screen. Something similar to this is provided as a demonstration in tutorial 7.

If you want the camera to move on it's own to follow the target (using the pan and tilt mount), there are two options. You can turn on the camera servo tracking with the 'Servo' block, and plug the camera servos into the pan and tilt ports on the camera board. The camera has a built in tracking mode, however this method isn't very adaptable.

The best solution is probably to write a simple program that moves the camera to follow the target based on one or more of the parameters coming back from the camera. Plug the camera servos directly into the RC, and drive them manually with your program. Writing a program such as this isn't especially difficult, but should be part of the challenge of the competition, and wasn't included in easyC as a sample. There is nothing to stop all of you from working on a tracking program and sharing it with each other though!
  #5   Spotlight this post!  
Unread 17-01-2006, 11:24
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: CMUCam with EasyC

Quote:
Originally Posted by intelitek_Chris
There is nothing to stop all of you from working on a tracking program and sharing it with each other though!
If anyone has done this please share!
  #6   Spotlight this post!  
Unread 01-02-2006, 14:28
PatLong PatLong is offline
Rookie
FRC #0020 (Rocketeers)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Albany, NY
Posts: 1
PatLong is an unknown quantity at this point
Re: CMUCam with EasyC

Quote:
Originally Posted by intelitek_Chris
I guess the answer to your question also depends on how you want to 'track' the target. If you just want the camera to return values about what it sees (specifically about the green target), than that is indeed built in 'out of the box'. You could write a simple program that initializes and then starts the camera. Then in a while loop, add a camera capture, print to screen, and a short wait statement. You should see the variable you captured printing in the terminal window screen. Something similar to this is provided as a demonstration in tutorial 7.

If you want the camera to move on it's own to follow the target (using the pan and tilt mount), there are two options. You can turn on the camera servo tracking with the 'Servo' block, and plug the camera servos into the pan and tilt ports on the camera board. The camera has a built in tracking mode, however this method isn't very adaptable.

The best solution is probably to write a simple program that moves the camera to follow the target based on one or more of the parameters coming back from the camera. Plug the camera servos directly into the RC, and drive them manually with your program. Writing a program such as this isn't especially difficult, but should be part of the challenge of the competition, and wasn't included in easyC as a sample. There is nothing to stop all of you from working on a tracking program and sharing it with each other though!
We have tried to get the easyc program to track on it's own for the last week or two without much luck.
Kevin's mplab program will compile and download to the controller and track back and forth looking for the target.
With the pan and tilt in the camera board, we can get the camera to keep the target centered, but once the target is lost the camera just stops tracking.
I have read as many of the threads as I can find and can not find any help on this. We have made sure that the battery is fresh, and the wires setup correctly.
For me to code the pan and tilt by plugging the pan and tilt into the pwm connection on the robot controller, is there a source of what the easyc camera values are and what the values mean?
A pan near value of x means what? A confidence level of > 1 means that we see more than 1 pixel? is that really good?
Any help would be appreciated.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMUcam setup Ryan Collings Programming 26 13-01-2006 01:00
Kickoff easyC workshop integrated into EasyC help file Dan Larochelle Programming 0 11-01-2006 06:12
EasyC v. 2.0 - New features, custom user functions, and more! artdutra04 FIRST Tech Challenge 1 02-11-2005 13:36
Autonomous: CMUCam or dead reckoning? Andrew Blair Rules/Strategy 18 26-02-2005 19:36


All times are GMT -5. The time now is 21:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi