forward

Dependencies:   ADXL345 AigamozuControlPackets_for_auto HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed

Fork of Aigamozu_Robot_ver4_for_forward by Mami Yokokawa

Revision:
24:698d4e920d33
Parent:
23:c5071bf93db1
Child:
25:ae5fab0946f2
diff -r c5071bf93db1 -r 698d4e920d33 main.cpp
--- a/main.cpp	Sun May 17 01:07:40 2015 +0000
+++ b/main.cpp	Sun May 17 01:11:52 2015 +0000
@@ -123,17 +123,18 @@
     if(SenderIDc >= 'A' && SenderIDc < 'Z'){
         send_Address = robot_Address[SenderIDc - 'A'];
             //Create GPS Infomation Packet
-        agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.gpsAuto(),
+        agz.createReceiveStatusCommand(MyID,SenderIDc, agz.nowMode,
                                         agz.get_agzPoint_lati(),agz.get_agzPoint_longi(),
                                         agz.get_agzPointKalman_lati(),agz.get_agzPointKalman_longi(),
                                         agz.get_agzCov_lati(),agz.get_agzCov_longi());
     }
     if(SenderIDc >= 'a' && SenderIDc <= 'z'){
         send_Address = base_Address[SenderIDc - 'a'];
-        agz.createReceiveStatusCommand(MyID,SenderIDc, agz.nowMode,
+
+        agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.gpsAuto(),
                                         agz.get_agzPoint_lati(),agz.get_agzPoint_longi(),
                                         agz.get_agzPointKalman_lati(),agz.get_agzPointKalman_longi(),
-                                        agz.get_agzCov_lati(),agz.get_agzCov_longi());       
+                                        agz.get_agzCov_lati(),agz.get_agzCov_longi());    
     }
     //send normal data