new maneger
Dependents: Aigamozu_Robot_2016_ver1 GPSLOG_program
Fork of agzIDLIST by
agzIDLIST.h@9:ede1ec39d419, 2015-05-14 (annotated)
- Committer:
- s1200058
- Date:
- Thu May 14 09:58:09 2015 +0000
- Revision:
- 9:ede1ec39d419
- Parent:
- 8:425a574537fd
- Child:
- 11:f97178c08e4c
2015/05/14
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
m5171135 | 0:47077248134f | 1 | #include "mbed.h" |
m5171135 | 0:47077248134f | 2 | |
s1200058 | 9:ede1ec39d419 | 3 | //////////// |
m5171135 | 0:47077248134f | 4 | //Bases |
s1200058 | 9:ede1ec39d419 | 5 | //////////// |
m5171135 | 0:47077248134f | 6 | |
s1200058 | 9:ede1ec39d419 | 7 | //BASE 1 |
s1200058 | 9:ede1ec39d419 | 8 | #define BASE1_NUM 4 |
s1200058 | 9:ede1ec39d419 | 9 | #define BASE1_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 10 | #define BASE1_32L 0x4099371F |
s1200058 | 9:ede1ec39d419 | 11 | |
s1200058 | 9:ede1ec39d419 | 12 | //BASE 2 |
s1200058 | 9:ede1ec39d419 | 13 | #define BASE2_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 14 | #define BASE2_32L 0x40993720 |
s1200058 | 9:ede1ec39d419 | 15 | |
s1200058 | 9:ede1ec39d419 | 16 | //BASE 3 |
s1200058 | 9:ede1ec39d419 | 17 | #define BASE3_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 18 | #define BASE3_32L 0x40993706 |
s1200058 | 9:ede1ec39d419 | 19 | |
s1200058 | 9:ede1ec39d419 | 20 | //BASE 4 |
s1200058 | 9:ede1ec39d419 | 21 | #define BASE4_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 22 | #define BASE4_32L 0x40993718 |
s1200058 | 9:ede1ec39d419 | 23 | |
s1200058 | 9:ede1ec39d419 | 24 | //BASE 5 |
s1200058 | 9:ede1ec39d419 | 25 | #define BASE5_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 26 | #define BASE5_32L 0x40993705 |
s1200058 | 9:ede1ec39d419 | 27 | |
s1200058 | 9:ede1ec39d419 | 28 | //BASE 6 |
s1200058 | 6:3f90a1c00a72 | 29 | #define BASE1_NUM 5 |
s1200058 | 2:5f1ff160078d | 30 | #define BASE1_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 31 | #define BASE1_32L 0x40993784 |
s1200058 | 9:ede1ec39d419 | 32 | |
s1200058 | 9:ede1ec39d419 | 33 | //BASE 7 |
s1200058 | 2:5f1ff160078d | 34 | #define BASE2_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 35 | #define BASE2_32L 0x40993757 |
s1200058 | 9:ede1ec39d419 | 36 | |
s1200058 | 9:ede1ec39d419 | 37 | //BASE 8 |
s1200058 | 9:ede1ec39d419 | 38 | #define BASE3_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 39 | #define BASE3_32L 0x40993700 |
s1200058 | 9:ede1ec39d419 | 40 | |
s1200058 | 9:ede1ec39d419 | 41 | //BASE 9 |
s1200058 | 9:ede1ec39d419 | 42 | #define BASE4_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 43 | #define BASE4_32L 0x40CACD51 |
s1200058 | 9:ede1ec39d419 | 44 | |
s1200058 | 9:ede1ec39d419 | 45 | //BASE 10 |
s1200058 | 9:ede1ec39d419 | 46 | #define BASE5_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 47 | #define BASE5_32L 0x40CACCD8 |
m5171135 | 0:47077248134f | 48 | |
s1200058 | 9:ede1ec39d419 | 49 | //BASE 11 |
s1200058 | 2:5f1ff160078d | 50 | #define BASE4_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 51 | #define BASE4_32L 0x40CACD61 |
s1200058 | 9:ede1ec39d419 | 52 | |
s1200058 | 9:ede1ec39d419 | 53 | //BASE 12 |
s1200058 | 9:ede1ec39d419 | 54 | #define BASE5_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 55 | #define BASE5_32L 0x40CACD5B |
s1200058 | 9:ede1ec39d419 | 56 | |
s1200058 | 9:ede1ec39d419 | 57 | |
s1200058 | 9:ede1ec39d419 | 58 | //////////////// |
s1200058 | 9:ede1ec39d419 | 59 | //robot |
s1200058 | 9:ede1ec39d419 | 60 | //////////////// |
s1200058 | 9:ede1ec39d419 | 61 | |
s1200058 | 9:ede1ec39d419 | 62 | //ROBOT 1 |
s1200058 | 9:ede1ec39d419 | 63 | #define ROBOT_NUM 3 |
s1200058 | 9:ede1ec39d419 | 64 | #define PAN1_R1_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 65 | #define PAN1_R1_SL 0x40993787 |
s1200058 | 9:ede1ec39d419 | 66 | |
s1200058 | 9:ede1ec39d419 | 67 | //ROBOT 2 |
s1200058 | 9:ede1ec39d419 | 68 | #define PAN1_R2_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 69 | #define PAN1_R2_SL 0x4099371a |
s1200058 | 2:5f1ff160078d | 70 | |
s1200058 | 9:ede1ec39d419 | 71 | //ROBOT 3 |
s1200058 | 9:ede1ec39d419 | 72 | #define PAN1_R3_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 73 | #define PAN1_R3_SL 0x409926ff |
s1200058 | 9:ede1ec39d419 | 74 | |
s1200058 | 9:ede1ec39d419 | 75 | //ROBOT 4 |
s1200058 | 9:ede1ec39d419 | 76 | #define PAN1_R4_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 77 | #define PAN1_R4_SL 0x40993704 |
s1200058 | 9:ede1ec39d419 | 78 | |
s1200058 | 9:ede1ec39d419 | 79 | //ROBOT 5 |
s1200058 | 9:ede1ec39d419 | 80 | #define PAN1_R5_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 81 | #define PAN1_R5_SL 0x409eaef7 |
s1200058 | 9:ede1ec39d419 | 82 | |
s1200058 | 9:ede1ec39d419 | 83 | //ROBOT 6 |
s1200058 | 9:ede1ec39d419 | 84 | #define PAN1_R6_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 85 | #define PAN1_R6_SL 0x40993703 |
s1200058 | 9:ede1ec39d419 | 86 | |
s1200058 | 9:ede1ec39d419 | 87 | //ROBOT 7 |
s1200058 | 9:ede1ec39d419 | 88 | #define PAN1_R7_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 89 | #define PAN1_R7_SL 0x40993701 |
s1200058 | 9:ede1ec39d419 | 90 | |
s1200058 | 9:ede1ec39d419 | 91 | //ROBOT 8 |
s1200058 | 9:ede1ec39d419 | 92 | #define PAN1_R8_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 93 | #define PAN1_R8_SL 0x40993716 |
s1200058 | 2:5f1ff160078d | 94 | |
s1200058 | 9:ede1ec39d419 | 95 | //ROBOT 9 |
s1200058 | 9:ede1ec39d419 | 96 | #define PAN1_R9_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 97 | #define PAN1_R9_SL 0x40993715 |
s1200058 | 9:ede1ec39d419 | 98 | |
s1200058 | 9:ede1ec39d419 | 99 | //ROBOT 10 |
s1200058 | 9:ede1ec39d419 | 100 | #define PAN1_R10_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 101 | #define PAN1_R10_SL 0x40993708 |
s1200058 | 9:ede1ec39d419 | 102 | |
s1200058 | 9:ede1ec39d419 | 103 | //ROBOT 11 |
s1200058 | 9:ede1ec39d419 | 104 | #define PAN1_R11_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 105 | #define PAN1_R11_SL 0x4099377a |
s1200058 | 9:ede1ec39d419 | 106 | |
s1200058 | 9:ede1ec39d419 | 107 | //ROBOT 12 |
s1200058 | 9:ede1ec39d419 | 108 | #define PAN1_R12_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 109 | #define PAN1_R12_SL 0x40993707 |
s1200058 | 9:ede1ec39d419 | 110 | |
s1200058 | 9:ede1ec39d419 | 111 | //ROBOT 13 |
s1200058 | 9:ede1ec39d419 | 112 | #define PAN1_R13_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 113 | #define PAN1_R13_SL 0x40993709 |
m5171135 | 0:47077248134f | 114 | |
s1200058 | 9:ede1ec39d419 | 115 | //ROBOT 14 |
s1200058 | 9:ede1ec39d419 | 116 | #define PAN1_R14_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 117 | #define PAN1_R14_SL 0x40993713 |
s1200058 | 9:ede1ec39d419 | 118 | |
s1200058 | 9:ede1ec39d419 | 119 | //ROBOT 15 |
s1200058 | 9:ede1ec39d419 | 120 | #define PAN1_R15_SH 0x0013a200 |
s1200058 | 9:ede1ec39d419 | 121 | #define PAN1_R15_SL 0x40993717 |
s1200058 | 9:ede1ec39d419 | 122 | |
s1200058 | 9:ede1ec39d419 | 123 | //MANAGER |
s1200058 | 9:ede1ec39d419 | 124 | #define MANAGER_NUM 1 |
s1200058 | 9:ede1ec39d419 | 125 | #define MANAGER_32H 0x0013A200 |
s1200058 | 9:ede1ec39d419 | 126 | #define MANAGER_32L 0x409EAEF3 |
s1200058 | 9:ede1ec39d419 | 127 | |
s1200058 | 9:ede1ec39d419 | 128 | ///////////////////////////////////////// |
s1200058 | 9:ede1ec39d419 | 129 | // |
s1200058 | 9:ede1ec39d419 | 130 | //Address List |
s1200058 | 9:ede1ec39d419 | 131 | // |
s1200058 | 9:ede1ec39d419 | 132 | ///////////////////////////////////////// |
s1200058 | 9:ede1ec39d419 | 133 | XBeeAddress64 base_Address[BASE_NUM] = {XBeeAddress64(BASE1_32H,BASE1_32L), XBeeAddress64(BASE2_32H,BASE2_32L), |
s1200058 | 9:ede1ec39d419 | 134 | XBeeAddress64(BASE3_32H,BASE3_32L), XBeeAddress64(BASE4_32H,BASE4_32L),}; |
s1200058 | 9:ede1ec39d419 | 135 | XBeeAddress64 robot_Address[ROBOT_NUM] = {XBeeAddress64(ROBOT1_32H,ROBOT1_32L), XBeeAddress64(ROBOT2_32H,ROBOT2_32L), |
s1200058 | 9:ede1ec39d419 | 136 | XBeeAddress64(ROBOT3_32H,ROBOT3_32L)}; |
s1200058 | 9:ede1ec39d419 | 137 | XBeeAddress64 manager_Address[MANAGER_NUM] = XBeeAddress64(MANAGER_32H, MANAGER_32L); |
m5171135 | 0:47077248134f | 138 | |
m5171135 | 0:47077248134f | 139 | |
m5171135 | 0:47077248134f | 140 | //AigamoRobots |