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
Diff: AI_Friday.cpp
- Revision:
- 28:d576b1190610
- Parent:
- 27:1696ef46b538
- Child:
- 29:47519f2b14ad
--- a/AI_Friday.cpp Thu May 26 10:35:46 2016 +0000
+++ b/AI_Friday.cpp Thu May 26 10:36:46 2016 +0000
@@ -264,9 +264,11 @@
break;
case 4: // 順時轉到特定角 結束 v1-- v2 --
+ if((borAngle-angleC)> 5 || (borAngle-angleC)<-5)//誤差容忍正負五度
+ {
v1_ref = -100;
v2_ref = -100;
-
+ }
else
{
borAngle = 0;