3/22-23の実験用 Send_Status(): 加速度・ジャイロをパケットで相手に送信 Get_Status():受信したパケットを表示
Dependencies: ADXL345 AigamozuControlPackets_展示会 Aigamozu_Robot_展示会 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST mbed setting
Fork of Aigamozu_Robot_展示会 by
Diff: main.cpp
- Revision:
- 24:698d4e920d33
- Parent:
- 23:c5071bf93db1
- Child:
- 25:ae5fab0946f2
--- 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