Shuto Naruse
/
Eurobot2012_Beacons
Eurobot2012_Beacons
Diff: defines.h
- Revision:
- 0:b8be0a00c4f8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/defines.h Wed Apr 18 21:08:20 2012 +0000 @@ -0,0 +1,19 @@ +#ifdef BEACON_0 +#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#define ON_CYCLE 20 // beacon 0 = 20, 1 = 30, 2 = 40 +#define OFF_CYCLE 40 // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#endif + +#ifdef BEACON_1 +#define CODE 0x44 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#define ON_CYCLE 30 // beacon 0 = 20, 1 = 30, 2 = 40 +#define OFF_CYCLE 30 // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#endif + +#ifdef BEACON_2 +#define CODE 0x88 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#define ON_CYCLE 40 // beacon 0 = 20, 1 = 30, 2 = 40 +#define OFF_CYCLE 20 // beacon 0 = 40, 1 = 30, 2 = 20#define CODE 0x22 //Beacon 0: 0x22, 1: 0x44, 2: 0x88 +#endif + +#define T_CARRIER 25 //us