test
Dependencies: ADXL345 aigamozu_auto_ver3_1 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST agz_common mbed
Fork of aigamozu_auto_ver3_1 by
Diff: main.cpp
- Revision:
- 1:d351cf39a6e3
- Parent:
- 0:68d27eee9a6c
- Child:
- 4:480f4eb9bcbc
--- a/main.cpp Sat Apr 25 01:06:06 2015 +0000 +++ b/main.cpp Sat Apr 25 01:28:11 2015 +0000 @@ -129,8 +129,8 @@ const int collect_Time = 200; //when we collect 4 GPS point, we use int collect_flag = 0; char collect_state = 'a'; - XBeeAddress64 collect_Address[4] = {XBeeAddress64(BASE1_32H,BASE1_32L), XBeeAddress64(BASE2_32H,BASE2_32L), - XBeeAddress64(BASE3_32H,BASE3_32L), XBeeAddress64(BASE4_32H,BASE4_32L)}; + XBeeAddress64 collect_Address[5] = {XBeeAddress64(BASE1_32H,BASE1_32L), XBeeAddress64(BASE2_32H,BASE2_32L), + XBeeAddress64(BASE3_32H,BASE3_32L), XBeeAddress64(BASE4_32H,BASE4_32L), XBeeAddress64(BASE5_32H,BASE5_32L)}; XBeeAddress64 robot_Address = XBeeAddress64(ROBOT1_32H, ROBOT1_32L); int id; bool flag = true; @@ -301,7 +301,7 @@ collect_flag++; collect_state++; - if(collect_flag == 4){ + if(collect_flag == 5){ collect_state = 'a'; collect_flag = 0; }