Go to Post Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together. Nothing works and nobody knows why. - CalTran [more]
Home
Go Back   Chief Delphi > Technical > Control System
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
  #46   Spotlight this post!  
Unread 23-03-2007, 07:46
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,505
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Autonomous Target Tracking at Regionals

If you are using Kevin's code - you can also lower the required confidence requirement or you can increase the delay after each camera search increment.

You can also use his newest code for the 0-90 degree mapping of the full 255 pwm range for increased accuracy - though we didn't use it at the Detroit regional.

On thing I hope many teams considered is that using degrees is very inefficient. Use the straight PWM values so you don't have to do any floating point or lose any accuracy through integer math. You can go further than that too if you limit where you want to lock your camera so you only use about a 45 degree range - tracking with the camara isn't necessary if you've got a gyro and geartooth encoders, you simply need your initial angle and distance.
  #47   Spotlight this post!  
Unread 23-03-2007, 08:49
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Autonomous Target Tracking at Regionals

Quote:
Originally Posted by Tom Line View Post
tracking with the camara isn't necessary if you've got a gyro and geartooth encoders, you simply need your initial angle and distance.
you still need the camera because they spin the rack..
  #48   Spotlight this post!  
Unread 23-03-2007, 12:35
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,271
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Autonomous Target Tracking at Regionals

Quote:
Originally Posted by bear24rw View Post
you still need the camera because they spin the rack..
I think he meant you just need the camera to tell you where the rack is initially, you don't need to keep tracking it the whole autonomous period.

It looks like we've finally figured out our autonomous problems in the fix-it-windows, which means we should have a working auto at the Championship (didn't have enough time for it at AZ). I hope we don't have camera tracking problems there, I'd like to see a good amount of autonomous modes there.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #49   Spotlight this post!  
Unread 23-03-2007, 13:11
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,505
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Autonomous Target Tracking at Regionals

Exactly right.

You need the camera once. So to avoid all the problems we've seen and have experienced, we get close, stop, and take one snapshot of where we are vs. the light.

It doesn't lend itself to any fancy turning / driving. We just turn once and then we drive straight ahead. But we do it often enough that we are pretty happy.
  #50   Spotlight this post!  
Unread 23-03-2007, 13:38
Vogel648 Vogel648 is offline
Student Programming Leader
FRC #0648 (QC Elite)
Team Role: Student
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Sherrard
Posts: 64
Vogel648 is on a distinguished road
Re: Autonomous Target Tracking at Regionals

It's already been mentioned how to change it is Kevin's code(as I recall there's also an online window you could change it from), in EasyC they have a camera config menu, go to that and then offset your two ends of the three colors away from eachother by whatever seems apropriate.
edit: also dead reconing off your initial camera value means that if your steering is just a little bit off you might not get it, I personally think think tracking is the way to go.
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
No Tracking During Autonomous jdejoannis Programming 4 10-02-2007 14:46
Camera Tracking Target Jade Programming 3 20-01-2007 01:41
How should we call camera tracking functions during autonomous mode? SHerpich Programming 1 15-02-2006 18:33
Autonomous Capping Regionals Collmandoman Regional Competitions 15 15-03-2005 22:48
Autonomous at Regionals Babyhueyhnx Regional Competitions 34 14-03-2005 20:00


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

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