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.