View Single Post
  #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,
__________________