Go to Post We'll defenestrate our programmer, and I'll report back our solution if we get anything working. - Nick Seidl [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 16-01-2007, 15:27
itsme itsme is offline
Registered User
FRC #2217 (FOMH)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Israel
Posts: 86
itsme is an unknown quantity at this point
Quetion about servo tracking function in easyC pro

What does it exactly do? From my understandings it tracks the target (the centroid of the target) by moving the pan and tilt servos. But how do I tell it on witch port the servos are?
  #2   Spotlight this post!  
Unread 16-01-2007, 15:44
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Quetion about servo tracking function in easyC pro

Quote:
Originally Posted by itsme View Post
What does it exactly do? From my understandings it tracks the target (the centroid of the target) by moving the pan and tilt servos. But how do I tell it on witch port the servos are?
Are you referring to the kickoff demo code? There are constants defined in there for the pan/tilt servo ports. The default I believe is 10 for pan, and 11 for tilt. Hit F6 to see a list of macros and constants.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
  #3   Spotlight this post!  
Unread 16-01-2007, 16:08
itsme itsme is offline
Registered User
FRC #2217 (FOMH)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Israel
Posts: 86
itsme is an unknown quantity at this point
Re: Quetion about servo tracking function in easyC pro

Quote:
Originally Posted by MattD View Post
Are you referring to the kickoff demo code? There are constants defined in there for the pan/tilt servo ports. The default I believe is 10 for pan, and 11 for tilt. Hit F6 to see a list of macros and constants.
I was talking about the built-in function called: servo tracking.
BTW, in the kick-off demo it moves the servos too? I thought it only gives data about the target, and doesn't move anything.
  #4   Spotlight this post!  
Unread 16-01-2007, 16:17
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Quetion about servo tracking function in easyC pro

Quote:
Originally Posted by itsme View Post
I was talking about the built-in function called: servo tracking.
BTW, in the kick-off demo it moves the servos too? I thought it only gives data about the target, and doesn't move anything.
IIRC, the kickoff demo code doesn't have anything built in for searching, but it does adjust the pan and tilt to stay centered on the target when it is acquired. The functions that do this I believe are called DistanceToPeg() and RotateToPeg().

I may be wrong here, but I think the built-in servo tracking functions require the servos to be connected to the camera board, and this isn't possible with the 2007 camera.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
  #5   Spotlight this post!  
Unread 31-01-2007, 11:09
teekon's Avatar
teekon teekon is offline
Programming?
AKA: Tzyler
FRC #1887 (Russet Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Idaho
Posts: 2
teekon is an unknown quantity at this point
Exclamation Re: Quetion about servo tracking function in easyC pro

I have my camera plugged into ports 10 and 11 for pan and tilt but it isnt working correctly. The camera will tilt to the ceiling or pan left until it stops and then it just sits there doing nothing.. is there something that has to be changed or should it work??
--ty--
  #6   Spotlight this post!  
Unread 31-01-2007, 11:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Quetion about servo tracking function in easyC pro

Quote:
Originally Posted by teekon View Post
I have my camera plugged into ports 10 and 11 for pan and tilt but it isnt working correctly. The camera will tilt to the ceiling or pan left until it stops and then it just sits there doing nothing.. is there something that has to be changed or should it work??
--ty--
Is there anything else in the code that might be affecting pwms 10 and 11? If you were using the C18 compiler and the FIRST-provided code, I'd advise you to check especially Default_routine(), but I don't know enough about EasyC to ask you anything more.
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
easyC PRO Tutorial - Including the Camera Kingofl337 Programming 4 21-08-2007 16:32
easyC PRO on Ubuntu Linux MattD Programming 5 10-04-2007 19:31
Question about default camera data table in easyC pro itsme Programming 1 16-01-2007 13:57
Additional easyC Pro License Dung H Cao Programming 2 10-01-2007 14:45
pic: easyC PRO at work! Jessica Boucher Extra Discussion 12 14-12-2006 15:25


All times are GMT -5. The time now is 20:52.

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