Go to Post HAH! What else am I supposed to do on a weekend? Sleep? - Michael Hill [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 03-02-2005, 10:55
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Question Re: AUTO TRACKING!!!!!!:(

Quote:
Originally Posted by Tom Bottiglieri
The solution I came up with is to make a simple counter that keeps track of program loops and moves the servo until it finds a color.

Code:
int counter = 0; //counter variable

if(camera_find_color(GREEN) == 0)
{
      camera_set_servos(counter, 127); //move pan servo 1 PWM value 40 times a second
}
else camera_auto_servo(1); //stop pan loop


//Increment counter.
if(counter < 255)
{
     counter++;
}
else counter = 0;

Hi! I really like your code and that was something that simmilar to what our team came up with. Infact our code wasn't as successful as yours but anyways thanks for the code. I just want to mention that their is a problem with the code or our cam configuration because when i put your code into autonomous mode it shows Error in terminal window stating "*Error setting color tracking parameters Expected 8, and got 0" You know what is the reason behind it maybe? Me and my team truly appreciated your help thanks once again!
 


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
Camera Auto Tracking? Ryan Cumings Programming 9 22-01-2005 02:20
IR Tracking & Navigation Tallman General Forum 3 20-01-2004 17:26
auto archiving of posts Joe Ross CD Forum Support 4 01-01-2004 02:04
My auto is better than yours.. lol randomperson Programming 25 07-04-2003 12:10
picking auto program Mike375 Programming 19 03-03-2003 15:47


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

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