Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Aigamozu_Robot_2016_ver1 GPSLOG_program
Fork of agzIDLIST by
Diff: agzIDLIST.h
- Revision:
- 10:47633a2fb0e4
- Parent:
- 8:425a574537fd
- Child:
- 12:c42921f874ea
--- a/agzIDLIST.h Tue May 12 01:02:39 2015 +0000
+++ b/agzIDLIST.h Thu May 14 10:00:16 2015 +0000
@@ -1,37 +1,134 @@
#include "mbed.h"
-///////
+////////////
//Bases
-///////
-#define BaseNumber 5
-#define RobotNumber 2
+////////////
-//BASE 1 R2
+//BASE 1
+#define BASE1_NUM 5
+#define BASE1_32H 0x0013A200
+#define BASE1_32L 0x4099371F
+
+//BASE 2
+#define BASE2_32H 0x0013A200
+#define BASE2_32L 0x40993720
+
+//BASE 3
+#define BASE3_32H 0x0013A200
+#define BASE3_32L 0x40993706
+
+//BASE 4
+#define BASE4_32H 0x0013A200
+#define BASE4_32L 0x40993718
+
+//BASE 5
+#define BASE5_32H 0x0013A200
+#define BASE5_32L 0x40993705
+
+//BASE 6
#define BASE1_NUM 5
#define BASE1_32H 0x0013A200
-#define BASE1_32L 0x40993719
-
-//BASE 2 R4
+#define BASE1_32L 0x40993784
+
+//BASE 7
#define BASE2_32H 0x0013A200
-#define BASE2_32L 0x409EAF0E
+#define BASE2_32L 0x40993757
+
+//BASE 8
+#define BASE3_32H 0x0013A200
+#define BASE3_32L 0x40993700
+
+//BASE 9
+#define BASE4_32H 0x0013A200
+#define BASE4_32L 0x40CACD51
+
+//BASE 10
+#define BASE5_32H 0x0013A200
+#define BASE5_32L 0x40CACCD8
-//BASE 3 R5
-#define BASE3_32H 0x0013A200
-#define BASE3_32L 0x409EAEF9
-
-//BASE 4 R8
+//BASE 11
#define BASE4_32H 0x0013A200
-#define BASE4_32L 0x409EAF06
+#define BASE4_32L 0x40CACD61
+
+//BASE 12
+#define BASE5_32H 0x0013A200
+#define BASE5_32L 0x40CACD5B
+////////////////
+//robot
+////////////////
+
+//ROBOT 1
+#define ROBOT_NUM 3
+#define PAN1_R1_SH 0x0013a200
+#define PAN1_R1_SL 0x40993787
+
+//ROBOT 2
+#define PAN1_R2_SH 0x0013a200
+#define PAN1_R2_SL 0x4099371a
-//BASE 5 R9
-#define BASE5_32H 0x0013A200
-#define BASE5_32L 0x409EAF01
+//ROBOT 3
+#define PAN1_R3_SH 0x0013a200
+#define PAN1_R3_SL 0x409926ff
+
+//ROBOT 4
+#define PAN1_R4_SH 0x0013a200
+#define PAN1_R4_SL 0x40993704
+
+//ROBOT 5
+#define PAN1_R5_SH 0x0013a200
+#define PAN1_R5_SL 0x409eaef7
+
+//ROBOT 6
+#define PAN1_R6_SH 0x0013a200
+#define PAN1_R6_SL 0x40993703
+
+//ROBOT 7
+#define PAN1_R7_SH 0x0013a200
+#define PAN1_R7_SL 0x40993701
-//robot1 R1
-#define ROBOT1_NUM 1
-#define ROBOT1_32H 0x0013A200
-#define ROBOT1_32L 0x409EAEF3
-//Contorolers
+//ROBOT 8
+#define PAN1_R8_SH 0x0013a200
+#define PAN1_R8_SL 0x40993716
+
+//ROBOT 9
+#define PAN1_R9_SH 0x0013a200
+#define PAN1_R9_SL 0x40993715
+
+//ROBOT 10
+#define PAN1_R10_SH 0x0013a200
+#define PAN1_R10_SL 0x40993708
+
+//ROBOT 11
+#define PAN1_R11_SH 0x0013a200
+#define PAN1_R11_SL 0x4099377a
+
+//ROBOT 12
+#define PAN1_R12_SH 0x0013a200
+#define PAN1_R12_SL 0x40993707
+
+//ROBOT 13
+#define PAN1_R13_SH 0x0013a200
+#define PAN1_R13_SL 0x40993709
+
+//ROBOT 14
+#define PAN1_R14_SH 0x0013a200
+#define PAN1_R14_SL 0x40993713
+
+//MANAGER
+#define MANAGER_NUM 1
+#define MANAGER_32H 0x0013A200
+#define MANAGER_32L 0x409EAEF3
+
+/////////////////////////////////////////
+//
+//Address List
+//
+/////////////////////////////////////////
+XBeeAddress64 base_Address[BASE_NUM] = {XBeeAddress64(BASE1_32H,BASE1_32L), XBeeAddress64(BASE2_32H,BASE2_32L),
+ XBeeAddress64(BASE3_32H,BASE3_32L), XBeeAddress64(BASE4_32H,BASE4_32L),};
+XBeeAddress64 robot_Address[ROBOT_NUM] = {XBeeAddress64(ROBOT1_32H,ROBOT1_32L), XBeeAddress64(ROBOT2_32H,ROBOT2_32L),
+ XBeeAddress64(ROBOT3_32H,ROBOT3_32L)};
+XBeeAddress64 manager_Address[MANAGER_NUM] = XBeeAddress64(MANAGER_32H, MANAGER_32L);
