Go to Post It's really quite amazing what people will find time to talk about in the month before kickoff. - Ekcrbe [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 09-02-2006, 03:15
Calvin Calvin is offline
Registered User
no team
 
Join Date: Feb 2005
Location: Portland OR
Posts: 105
Calvin has a spectacular aura aboutCalvin has a spectacular aura about
Florescent lights green on both sides?!?

While mentally trying to figure out how I'll be programming the CMUcam2 in the next couple of days... I thought "Camera scans, finds the lights, turns the shooter towards the target and I click the "fire" button"

But than it hit me, how is the robot suppose to know which target it's pointing at? Are the targets different colors?
  #2   Spotlight this post!  
Unread 09-02-2006, 07:05
DjAlamose's Avatar
DjAlamose DjAlamose is offline
Registered User
AKA: Teh Albie
FRC #0279 (Tech Fusion)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Toledo, OH
Posts: 343
DjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to behold
Send a message via AIM to DjAlamose
Re: Florescent lights green on both sides?!?

The targets are not different colors. But you will know which direction yours will be in from the beginning of the match (right side if facing center of field). Using this you can tell the robot to scan a smaller area until it finds the light, and not your opponent’s.
__________________
WHAT TIME IS IT????? 279!!


2006 GLR Safety Award (2nd year in a row)
2005 National Xerox Creativity Award
2005 National Curie Quarter Finalist w/ 1126 and 180
2005 Buckeye Regional Champs w/ 67 and 274
2005 Buckeye Regional GM Industrial Design Award
2005 Buckeye Regional Safety Award
2005 GLR Quarter Finalist
2005 GLR Xerox Creativity Award
2005 GLR Safety Award
2004 Nationals Curie Division Finalist
2004 GLR Champs
2004 Buckeye Delphi Driving Tomorrow Award
2004 Buckeye Quarter Finalist w/ 1001 and 869
2003 GM Industrial Design Award GLR
2001 National Champs
  #3   Spotlight this post!  
Unread 09-02-2006, 07:45
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,313
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: Florescent lights green on both sides?!?

There are no distinguishing differences between the 2 goals, and I'm guessing GDC did this on purpose to force you into doing a little bit more for autonomous. You can simply limit your camera pan so you only point at one side of the field, or if you want to be extra careful in case an opposing (or alliance) robot turns you around, use a gyro and don't shoot unless you're within a certain range representing the side of the field you want to point towards.
  #4   Spotlight this post!  
Unread 09-02-2006, 11:02
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Florescent lights green on both sides?!?

Quote:
Originally Posted by DjAlamose
The targets are not different colors. But you will know which direction yours will be in from the beginning of the match (right side if facing center of field). Using this you can tell the robot to scan a smaller area until it finds the light, and not your opponent’s.
If you are using the mount that came in the kit of parts, then the camera does not have more than 180 degrees of rotation.

A solution to your problem might to write a short dead reckoning algorithm, lets say (in pseudocode):

Code:
 forward(1 sec) 
turn left(2 sec) /*or right, depending on which side of the field you are starting at*/
forward(2 sec)
hand control over to the camera
Something like this would more than likely make sure that you won't shoot into you're own goal during autonomous.

Next, you can have a switch on your control board (or a joystick button), such that:

Code:
 if(p1_sw_trig (hypothetical)==1){ disable_cam=1;} 
if(p1_sw_top==1){ disable_cam=0;}
Which would allow you to disable the camera when you are on defence (if you so choose).

Hope this helps,
__________________
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
Green target has to "warm up"? Eldarion Programming 14 27-01-2006 12:52
Christmas Tree Lights On The Controller Astronouth7303 Programming 1 05-02-2005 21:52
Reputation points SilverStar CD Forum Support 73 26-05-2004 02:14
is anyone wanting a lot of lights (decorative) on the robot? archiver 2001 5 24-06-2002 00:09


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

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