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: VNH5019
Dependents: Aigamozu_Robot_展示会 Aigamozu_Robot_March Aigamozu_Robot_templete
Fork of AigamozuControlPackets by
Revision 53:99b977d16a6d, committed 2017-08-04
- Comitter:
- s1200058
- Date:
- Fri Aug 04 12:49:32 2017 +0000
- Parent:
- 50:61d72f617aa5
- Commit message:
- for_OHARA
Changed in this revision
| AigamozuControlPackets.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 61d72f617aa5 -r 99b977d16a6d AigamozuControlPackets.cpp
--- a/AigamozuControlPackets.cpp Thu Mar 30 10:47:49 2017 +0000
+++ b/AigamozuControlPackets.cpp Fri Aug 04 12:49:32 2017 +0000
@@ -2,9 +2,9 @@
#include "VNH5019.h"
-#define LOW_SPEED 16
-#define HIGH_SPEED 64
-#define FORWARD_SPEED 64
+#define LOW_SPEED 32
+#define HIGH_SPEED 96
+#define FORWARD_SPEED 16
//////////////////////////////
// Init //
@@ -64,14 +64,14 @@
if(nowMode == AUTO_GPS_MODE){
- if(moveTimer.read_ms() <= 400){
- _agzSheild.changeSpeed(1,HIGH_SPEED,0,LOW_SPEED);//時計回り
- }else if(moveTimer.read_ms() > 400 && moveTimer.read_ms() <= 800){
- _agzSheild.changeSpeed(0,LOW_SPEED,1,HIGH_SPEED); //反時計回り
- }else if(moveTimer.read_ms() > 800){
- _agzSheild.changeSpeed(1,HIGH_SPEED,0,LOW_SPEED);//時計回り
- moveTimer.reset();
- }
+ //if(moveTimer.read_ms() <= 400){
+ _agzSheild.changeSpeed(1,HIGH_SPEED,1,LOW_SPEED);//時計回り
+ //}else if(moveTimer.read_ms() > 400 && moveTimer.read_ms() <= 800){
+ //_agzSheild.changeSpeed(0,LOW_SPEED,1,HIGH_SPEED); //反時計回り
+ //}else if(moveTimer.read_ms() > 800){
+ //_agzSheild.changeSpeed(1,HIGH_SPEED,0,LOW_SPEED);//時計回り
+ //moveTimer.reset();
+ //}
}
return 1;
