Shuto Naruse / Mbed 2 deprecated Eurobot2012_Beacons
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers defines.h Source File

defines.h

00001 #ifdef  BEACON_0
00002 #define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00003 #define ON_CYCLE    20  // beacon 0 = 20, 1 = 30, 2 = 40
00004 #define OFF_CYCLE   40  // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00005 #endif
00006 
00007 #ifdef  BEACON_1
00008 #define CODE 0x44 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00009 #define ON_CYCLE    30  // beacon 0 = 20, 1 = 30, 2 = 40
00010 #define OFF_CYCLE   30  // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00011 #endif
00012 
00013 #ifdef  BEACON_2
00014 #define CODE 0x88 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00015 #define ON_CYCLE    40  // beacon 0 = 20, 1 = 30, 2 = 40
00016 #define OFF_CYCLE   20  // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88
00017 #endif
00018 
00019 #define T_CARRIER 25 //us