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.
Dependencies: ADXL345 AigamozuControlPackets_2016 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST_2016 mbed
Fork of Aigamozu_Robot_ver4 by
Diff: main.cpp
- Revision:
- 43:d222eaf91cd1
- Parent:
- 42:5cdd92577dfe
- Child:
- 44:db9a1a073fd8
--- a/main.cpp Wed May 25 15:18:38 2016 +0000
+++ b/main.cpp Sat May 28 08:06:38 2016 +0000
@@ -60,7 +60,7 @@
//Base ID: 'a' ~ 'a'
//manager ID: '0'(数字のゼロ)
//
-const char MyID = 'D';
+const char MyID = 'J';
//************ID Number*****************
/////////////////////////////////////////
@@ -140,7 +140,7 @@
XBeeAddress64 send_Address;
if(SenderIDc == '0') {
send_Address = manager_Address;
- agz.createReceiveStatusCommand(MyID,SenderIDc, agz.nowMode,
+ agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.out_flag,
agz.get_agzPoint_lati(),agz.get_agzPoint_longi(),
agz.get_agzPointKalman_lati(),agz.get_agzPointKalman_longi(),
agz.get_agzCov_lati(),agz.get_agzCov_longi());
@@ -148,7 +148,7 @@
if(SenderIDc >= 'A' && SenderIDc <= 'Z') {
send_Address = robot_Address[SenderIDc - 'A'];
//Create GPS Infomation Packet
- agz.createReceiveStatusCommand(MyID,SenderIDc, agz.nowMode,
+ agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.out_flag,
agz.get_agzPoint_lati(),agz.get_agzPoint_longi(),
agz.get_agzPointKalman_lati(),agz.get_agzPointKalman_longi(),
agz.get_agzCov_lati(),agz.get_agzCov_longi());
@@ -156,7 +156,7 @@
if(SenderIDc >= 'a' && SenderIDc <= 'z') {
send_Address = base_Address[SenderIDc - 'a'];
- agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.gpsAuto(),
+ agz.createReceiveStatusCommand(MyID,SenderIDc, (int)agz.out_flag,
agz.get_agzPoint_lati(),agz.get_agzPoint_longi(),
agz.get_agzPointKalman_lati(),agz.get_agzPointKalman_longi(),
agz.get_agzCov_lati(),agz.get_agzCov_longi());
