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