View Single Post
  #9   Spotlight this post!  
Unread 11-02-2004, 16:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,793
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Beacon selector switch? How to find/make?

Quote:
Originally Posted by shsdragon
i don;t thisswitch how does it rrecognize wut type beacon it is someone plz explain
The switch returns a value of 0(on) or 1(off)

In the tracker code this switch value is represented by rc_dig_in07

rc_dig_in07 is given another name (DESIRED_BEACON_TYPE) by tracker.h and that's what you'll see used in the tracker.c code.

The tracker code then checks rc_dig_in07 to see which of the two beacon types it is supposed to be looking for.

FIRST hasn't yet told us which sides of the field the two beacons are going to be on, but if you have your beacon switch you can just label them at the regional competition.
I like to think of the switch as red/blue alliance rather than beacon type-0/type-1.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2004 at 09:44.