version 3 通信方式,マイコン等に変更あり

Dependencies:   AQM0802A PID Servo mbed

Revision:
6:bfc0e8d2d3ae
Parent:
5:09afcbe0c18f
diff -r 09afcbe0c18f -r bfc0e8d2d3ae main.h
--- a/main.h	Fri Mar 13 01:14:38 2015 +0000
+++ b/main.h	Fri Mar 13 12:26:29 2015 +0000
@@ -54,6 +54,8 @@
 /*Servo timer */
 Timeout STimer;
 
+Timeout GoHTimer;
+
 extern string StringFIN;
 extern void array(int,int,int,int);
 extern void micon_rx(void);
@@ -72,6 +74,7 @@
 double SetC = 0, InputPID = 180.0, CompassPID = 0.0;
 
 bool WaitFlag = 0;
+bool GoHFlag = 0;
 
 /* motor driver*/
 
@@ -130,28 +133,28 @@
 
 int wrapDegree[24] = { 0,//
                     30,//15
-                    60,//30
-                    90,//45
-                    130,//60
+                    45,//30
+                    100,//45
+                    110,//60
                     140,//75
                     170,//90
                     170,//105
-                    170,//120
-                    180,//135
+                    190,//120
+                    190,//135
                     200,//150
-                    220,//165
+                    230,//165
                     90, //180 or270
-                    130,//195
-                    150,//210
-                    180,//225
-                    175,//240
-                    195,//255
-                    195,//270
-                    240,//285
-                    230,//300
-                    270,//315
-                    290,//330
-                    320//345                
+                    150,//195
+                    160,//210
+                    170,//225
+                    170,//240
+                    190,//255
+                    190,//270
+                    220,//285
+                    250,//300
+                    260,//315
+                    315,//330
+                    330//345                
                     };