Robotics Term Project / Mbed 2 deprecated Robottics_Motion

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
roger5641
Date:
Wed May 25 13:38:27 2016 +0000
Parent:
18:2db6c97a4145
Child:
20:5b892e37a958
Commit message:
AI;

Changed in this revision

AI_Friday.cpp 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/AI_Friday.cpp	Wed May 25 13:29:52 2016 +0000
+++ b/AI_Friday.cpp	Wed May 25 13:38:27 2016 +0000
@@ -90,7 +90,7 @@
             pc.putc(bluetooth.getc());
         }
         
-        /*if(Command_Flag == 1)
+        if(Command_Flag == 1)
         {
             //read data from matlab
             //distance_target
@@ -146,7 +146,7 @@
             else if(Receive_Data[33] == 'k')pwm_duty = 100;
             
             Command_Flag = 0;
-        }*/
+        }
     }
 }
 
--- a/main.cpp	Wed May 25 13:29:52 2016 +0000
+++ b/main.cpp	Wed May 25 13:38:27 2016 +0000
@@ -49,7 +49,7 @@
 
 float servo_duty = 0.079;//0.079 +(0.084/180)*angle, -90<angle<90
 
-int Command_Flag = 0, Receive_Flag = 0, Receive_Counter = 0, 
+int Command_Flag = 0, Receive_Flag = 0, Receive_Counter = 0; 
 int Receive_Data[33];
 
 int Distance_Target = 0, Angle_Target = 0;