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: mbed
Revision 19:5091c934ebd0, committed 2016-05-25
- 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;