akm

Dependents:   aigamozu_program_ver2 aigamozu_program_ver2_yokokawa aigamozu_auto_ver1 aigamozu_auto_ver2 ... more

agzIDLIST.h

Committer:
s1200058
Date:
2015-05-14
Revision:
13:3d74358d3b1b
Parent:
11:f97178c08e4c
Child:
15:0f026cfcf1bd

File content as of revision 13:3d74358d3b1b:

#include "mbed.h"

////////////
//Bases
////////////

//BASE 1
#define BASE_NUM 4
#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 BASE6_32H 0x0013A200
#define BASE6_32L 0x40993784
 
//BASE 7
#define BASE7_32H 0x0013A200
#define BASE7_32L 0x40993757
 
//BASE 8
#define BASE8_32H 0x0013A200
#define BASE8_32L 0x40993700
 
//BASE 9
#define BASE9_32H 0x0013A200
#define BASE9_32L 0x40CACD51
 
//BASE 10
#define BASE10_32H 0x0013A200
#define BASE10_32L 0x40CACCD8

//BASE 11
#define BASE11_32H 0x0013A200
#define BASE11_32L 0x40CACD61
 
//BASE 12
#define BASE12_32H 0x0013A200
#define BASE12_32L 0x40CACD5B


////////////////
//robot
////////////////

//ROBOT 1
#define PAN_NUM 3
#define PAN1_R1_SH 0x0013a200
#define PAN1_R1_SL 0x40993787

//ROBOT 2
#define PAN1_R2_SH 0x0013a200
#define PAN1_R2_SL 0x4099371a

//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

//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

//ROBOT 15
#define PAN1_R15_SH 0x0013a200
#define PAN1_R15_SL 0x40993717

//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[PAN_NUM] = {XBeeAddress64(PAN1_R1_SH,PAN1_R1_SL), XBeeAddress64(PAN1_R2_SH,PAN1_R2_SL),
                                 XBeeAddress64(PAN1_R3_SH,PAN1_R3_SL)};
XBeeAddress64 manager_Address = XBeeAddress64(MANAGER_32H, MANAGER_32L);

//AigamoRobots