new maneger
Dependents: Aigamozu_Robot_2016_ver1 GPSLOG_program
Fork of agzIDLIST by
agzIDLIST.h@17:b17fb2bbe0db, 2015-05-15 (annotated)
- Committer:
- s1200058
- Date:
- Fri May 15 08:20:58 2015 +0000
- Revision:
- 17:b17fb2bbe0db
- Parent:
- 16:3950f234db37
- Child:
- 22:059b11d3e5d5
2015/05/15
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 | 10:47633a2fb0e4 | 3 | //////////// |
m5171135 | 0:47077248134f | 4 | //Bases |
s1200058 | 10:47633a2fb0e4 | 5 | //////////// |
m5171135 | 0:47077248134f | 6 | |
s1200058 | 10:47633a2fb0e4 | 7 | //BASE 1 |
s1200058 | 17:b17fb2bbe0db | 8 | #define BASE_NUM 12 |
s1200058 | 10:47633a2fb0e4 | 9 | #define BASE1_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 10 | #define BASE1_32L 0x4099371F |
s1200058 | 10:47633a2fb0e4 | 11 | |
s1200058 | 10:47633a2fb0e4 | 12 | //BASE 2 |
s1200058 | 10:47633a2fb0e4 | 13 | #define BASE2_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 14 | #define BASE2_32L 0x40993720 |
s1200058 | 10:47633a2fb0e4 | 15 | |
s1200058 | 10:47633a2fb0e4 | 16 | //BASE 3 |
s1200058 | 10:47633a2fb0e4 | 17 | #define BASE3_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 18 | #define BASE3_32L 0x40993706 |
s1200058 | 10:47633a2fb0e4 | 19 | |
s1200058 | 10:47633a2fb0e4 | 20 | //BASE 4 |
s1200058 | 10:47633a2fb0e4 | 21 | #define BASE4_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 22 | #define BASE4_32L 0x40993718 |
s1200058 | 10:47633a2fb0e4 | 23 | |
s1200058 | 10:47633a2fb0e4 | 24 | //BASE 5 |
s1200058 | 10:47633a2fb0e4 | 25 | #define BASE5_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 26 | #define BASE5_32L 0x40993705 |
s1200058 | 10:47633a2fb0e4 | 27 | |
s1200058 | 10:47633a2fb0e4 | 28 | //BASE 6 |
s1200058 | 14:52b48a35e01a | 29 | #define BASE6_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 30 | #define BASE6_32L 0x40993784 |
s1200058 | 10:47633a2fb0e4 | 31 | |
s1200058 | 10:47633a2fb0e4 | 32 | //BASE 7 |
s1200058 | 14:52b48a35e01a | 33 | #define BASE7_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 34 | #define BASE7_32L 0x40993757 |
s1200058 | 10:47633a2fb0e4 | 35 | |
s1200058 | 10:47633a2fb0e4 | 36 | //BASE 8 |
s1200058 | 14:52b48a35e01a | 37 | #define BASE8_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 38 | #define BASE8_32L 0x40993700 |
s1200058 | 10:47633a2fb0e4 | 39 | |
s1200058 | 10:47633a2fb0e4 | 40 | //BASE 9 |
s1200058 | 14:52b48a35e01a | 41 | #define BASE9_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 42 | #define BASE9_32L 0x40CACD51 |
s1200058 | 10:47633a2fb0e4 | 43 | |
s1200058 | 10:47633a2fb0e4 | 44 | //BASE 10 |
s1200058 | 14:52b48a35e01a | 45 | #define BASE10_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 46 | #define BASE10_32L 0x40CACCD8 |
m5171135 | 0:47077248134f | 47 | |
s1200058 | 10:47633a2fb0e4 | 48 | //BASE 11 |
s1200058 | 14:52b48a35e01a | 49 | #define BASE11_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 50 | #define BASE11_32L 0x40CACD61 |
s1200058 | 10:47633a2fb0e4 | 51 | |
s1200058 | 10:47633a2fb0e4 | 52 | //BASE 12 |
s1200058 | 14:52b48a35e01a | 53 | #define BASE12_32H 0x0013A200 |
s1200058 | 14:52b48a35e01a | 54 | #define BASE12_32L 0x40CACD5B |
s1200058 | 12:c42921f874ea | 55 | |
s1200058 | 12:c42921f874ea | 56 | |
s1200058 | 10:47633a2fb0e4 | 57 | //////////////// |
s1200058 | 10:47633a2fb0e4 | 58 | //robot |
s1200058 | 10:47633a2fb0e4 | 59 | //////////////// |
s1200058 | 10:47633a2fb0e4 | 60 | |
s1200058 | 10:47633a2fb0e4 | 61 | //ROBOT 1 |
s1200058 | 17:b17fb2bbe0db | 62 | #define PAN_NUM 15 |
s1200058 | 17:b17fb2bbe0db | 63 | #define PAN1_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 64 | #define PAN1_SL 0x40993787 |
s1200058 | 10:47633a2fb0e4 | 65 | |
s1200058 | 10:47633a2fb0e4 | 66 | //ROBOT 2 |
s1200058 | 17:b17fb2bbe0db | 67 | #define PAN2_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 68 | #define PAN2_SL 0x4099371a |
s1200058 | 2:5f1ff160078d | 69 | |
s1200058 | 10:47633a2fb0e4 | 70 | //ROBOT 3 |
s1200058 | 17:b17fb2bbe0db | 71 | #define PAN3_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 72 | #define PAN3_SL 0x409936ff |
s1200058 | 10:47633a2fb0e4 | 73 | |
s1200058 | 10:47633a2fb0e4 | 74 | //ROBOT 4 |
s1200058 | 17:b17fb2bbe0db | 75 | #define PAN4_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 76 | #define PAN4_SL 0x40993704 |
s1200058 | 10:47633a2fb0e4 | 77 | |
s1200058 | 10:47633a2fb0e4 | 78 | //ROBOT 5 |
s1200058 | 17:b17fb2bbe0db | 79 | #define PAN5_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 80 | #define PAN5_SL 0x409eaef7 |
s1200058 | 10:47633a2fb0e4 | 81 | |
s1200058 | 10:47633a2fb0e4 | 82 | //ROBOT 6 |
s1200058 | 17:b17fb2bbe0db | 83 | #define PAN6_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 84 | #define PAN6_SL 0x40993703 |
s1200058 | 10:47633a2fb0e4 | 85 | |
s1200058 | 10:47633a2fb0e4 | 86 | //ROBOT 7 |
s1200058 | 17:b17fb2bbe0db | 87 | #define PAN7_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 88 | #define PAN7_SL 0x40993701 |
s1200058 | 2:5f1ff160078d | 89 | |
s1200058 | 10:47633a2fb0e4 | 90 | //ROBOT 8 |
s1200058 | 17:b17fb2bbe0db | 91 | #define PAN8_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 92 | #define PAN8_SL 0x40993716 |
s1200058 | 10:47633a2fb0e4 | 93 | |
s1200058 | 10:47633a2fb0e4 | 94 | //ROBOT 9 |
s1200058 | 17:b17fb2bbe0db | 95 | #define PAN9_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 96 | #define PAN9_SL 0x40993715 |
s1200058 | 10:47633a2fb0e4 | 97 | |
s1200058 | 10:47633a2fb0e4 | 98 | //ROBOT 10 |
s1200058 | 17:b17fb2bbe0db | 99 | #define PAN10_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 100 | #define PAN10_SL 0x40993708 |
s1200058 | 10:47633a2fb0e4 | 101 | |
s1200058 | 10:47633a2fb0e4 | 102 | //ROBOT 11 |
s1200058 | 17:b17fb2bbe0db | 103 | #define PAN11_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 104 | #define PAN11_SL 0x4099377a |
s1200058 | 10:47633a2fb0e4 | 105 | |
s1200058 | 10:47633a2fb0e4 | 106 | //ROBOT 12 |
s1200058 | 17:b17fb2bbe0db | 107 | #define PAN12_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 108 | #define PAN12_SL 0x40993707 |
s1200058 | 10:47633a2fb0e4 | 109 | |
s1200058 | 10:47633a2fb0e4 | 110 | //ROBOT 13 |
s1200058 | 17:b17fb2bbe0db | 111 | #define PAN13_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 112 | #define PAN13_SL 0x40993709 |
s1200058 | 10:47633a2fb0e4 | 113 | |
s1200058 | 10:47633a2fb0e4 | 114 | //ROBOT 14 |
s1200058 | 17:b17fb2bbe0db | 115 | #define PAN14_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 116 | #define PAN14_SL 0x40993713 |
s1200058 | 10:47633a2fb0e4 | 117 | |
s1200058 | 12:c42921f874ea | 118 | //ROBOT 15 |
s1200058 | 17:b17fb2bbe0db | 119 | #define PAN15_SH 0x0013a200 |
s1200058 | 17:b17fb2bbe0db | 120 | #define PAN15_SL 0x40993717 |
s1200058 | 12:c42921f874ea | 121 | |
s1200058 | 10:47633a2fb0e4 | 122 | //MANAGER |
s1200058 | 10:47633a2fb0e4 | 123 | #define MANAGER_NUM 1 |
s1200058 | 10:47633a2fb0e4 | 124 | #define MANAGER_32H 0x0013A200 |
s1200058 | 10:47633a2fb0e4 | 125 | #define MANAGER_32L 0x409EAEF3 |
s1200058 | 10:47633a2fb0e4 | 126 | |
s1200058 | 10:47633a2fb0e4 | 127 | ///////////////////////////////////////// |
s1200058 | 10:47633a2fb0e4 | 128 | // |
s1200058 | 10:47633a2fb0e4 | 129 | //Address List |
s1200058 | 10:47633a2fb0e4 | 130 | // |
s1200058 | 10:47633a2fb0e4 | 131 | ///////////////////////////////////////// |
s1200058 | 10:47633a2fb0e4 | 132 | XBeeAddress64 base_Address[BASE_NUM] = {XBeeAddress64(BASE1_32H,BASE1_32L), XBeeAddress64(BASE2_32H,BASE2_32L), |
s1200058 | 17:b17fb2bbe0db | 133 | XBeeAddress64(BASE3_32H,BASE3_32L), XBeeAddress64(BASE4_32H,BASE4_32L), |
s1200058 | 17:b17fb2bbe0db | 134 | XBeeAddress64(BASE5_32H,BASE5_32L), XBeeAddress64(BASE6_32H,BASE6_32L), |
s1200058 | 17:b17fb2bbe0db | 135 | XBeeAddress64(BASE7_32H,BASE7_32L), XBeeAddress64(BASE8_32H,BASE8_32L), |
s1200058 | 17:b17fb2bbe0db | 136 | XBeeAddress64(BASE9_32H,BASE9_32L), XBeeAddress64(BASE10_32H,BASE10_32L), |
s1200058 | 17:b17fb2bbe0db | 137 | XBeeAddress64(BASE11_32H,BASE11_32L), XBeeAddress64(BASE12_32H,BASE12_32L)}; |
s1200058 | 17:b17fb2bbe0db | 138 | XBeeAddress64 robot_Address[PAN_NUM] = {XBeeAddress64(PAN1_SH,PAN1_SL), XBeeAddress64(PAN2_SH,PAN2_SL), |
s1200058 | 17:b17fb2bbe0db | 139 | XBeeAddress64(PAN3_SH,PAN3_SL), XBeeAddress64(PAN4_SH,PAN4_SL), |
s1200058 | 17:b17fb2bbe0db | 140 | XBeeAddress64(PAN5_SH,PAN5_SL),XBeeAddress64(PAN6_SH,PAN6_SL), |
s1200058 | 17:b17fb2bbe0db | 141 | XBeeAddress64(PAN7_SH,PAN7_SL), XBeeAddress64(PAN8_SH,PAN8_SL), |
s1200058 | 17:b17fb2bbe0db | 142 | XBeeAddress64(PAN9_SH,PAN9_SL), XBeeAddress64(PAN10_SH,PAN10_SL), |
s1200058 | 17:b17fb2bbe0db | 143 | XBeeAddress64(PAN11_SH,PAN11_SL),XBeeAddress64(PAN12_SH,PAN12_SL), |
s1200058 | 17:b17fb2bbe0db | 144 | XBeeAddress64(PAN13_SH,PAN13_SL), XBeeAddress64(PAN14_SH,PAN14_SL), |
s1200058 | 17:b17fb2bbe0db | 145 | XBeeAddress64(PAN15_SH,PAN15_SL)}; |
s1200058 | 14:52b48a35e01a | 146 | XBeeAddress64 manager_Address = XBeeAddress64(MANAGER_32H, MANAGER_32L); |
m5171135 | 0:47077248134f | 147 | |
m5171135 | 0:47077248134f | 148 | //AigamoRobots |