2016_05_19 Auto mode: 10sec forward, 2sec stop, 2sec turn right Please change test Auto pwm

Dependencies:   ADXL345 AigamozuControlPackets_2016 HMC5843 ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST_2016 mbed

Fork of Aigamozu_Robot_ver4 by CanSat2015aizu

Files at this revision

API Documentation at this revision

Comitter:
s1200058
Date:
Sat Jun 11 03:40:47 2016 +0000
Parent:
46:e042e9969f10
Commit message:
change auto_time

Changed in this revision

AigamozuControlPackets.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AigamozuControlPackets.lib	Fri Jun 10 09:06:32 2016 +0000
+++ b/AigamozuControlPackets.lib	Sat Jun 11 03:40:47 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/aigamozu/code/AigamozuControlPackets_2016/#4da5b1b048aa
+https://developer.mbed.org/teams/aigamozu/code/AigamozuControlPackets_2016/#ee5a6906273e
--- a/main.cpp	Fri Jun 10 09:06:32 2016 +0000
+++ b/main.cpp	Sat Jun 11 03:40:47 2016 +0000
@@ -60,7 +60,7 @@
 //Base    ID: 'a' ~ 'a'
 //manager ID: '0'(数字のゼロ)
 //
-const char MyID = 'D';
+const char MyID = 'O';
 //************ID Number*****************
 
 /////////////////////////////////////////
@@ -432,11 +432,9 @@
     Timer refresh_Timer;
     const int refresh_Time = 1000; //refresh time in ms
     Timer auto_Timer;
-    const int auto_Time = 2000; //refresh time in ms
+    const int auto_Time = 1000; //refresh time in ms
     int count = 0;
 
-//    const int straight = 8000, turning = 12000, wait = 10000;
-
     myGPS.begin(GPS_BAUD_RATE);
 
     Timer collect_Timer;
@@ -534,6 +532,7 @@
             }
         }
 
+        //for Auto Mode
         if(agz.nowMode == AUTO_GPS_MODE && auto_Timer.read_ms() >= auto_Time) {
             auto_Timer.reset();
             auto_Move();