Main Program

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
27:769cb5a7ea37
Parent:
26:fbb03281fc7d
Child:
28:8ac6c3c1e643
--- a/setting/def.h	Sun Jan 31 06:53:54 2016 +0000
+++ b/setting/def.h	Sun Jan 31 15:46:19 2016 +0000
@@ -52,6 +52,16 @@
 #define X_AXIS 0
 #define Y_AXIS 1
 
+//line
+
+#define A_SPOT 0
+#define B_SPOT 1
+#define C_SPOT 2
+#define AB_SPOT 3
+
+#define LINE_RF 10
+#define RELEASE_VAL 150
+
 //思考パターン
 #define STRATEGY_NUM 12
 
@@ -78,7 +88,9 @@
     int32_t mouse[2];//0...x,1...y//1cm nearlyeq 1000count
     //motor 
     int32_t motorlog[2];
+    uint8_t MotorFlag;
     //cmps&pid
+    uint8_t PidFlag;
     double cmps, CmpsInitialValue, CmpsDiff, FrontDeg;//0<x<360
     double InputPID;//<<gyrosensor
     int16_t OutputPID;//>>motor