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.
Diff: main.cpp
- Revision:
- 23:f87e7472befe
- Parent:
- 22:64fa6f501426
- Child:
- 24:731f8fbc4adb
--- a/main.cpp Sun May 03 11:48:52 2020 +0000
+++ b/main.cpp Sun May 03 11:51:56 2020 +0000
@@ -100,7 +100,7 @@
break;
}//switch
- while(iState=Depart)
+ while(iState==Depart)
{
if(SwitchJack==0||SwitchFire==1)
iState=Navigation;
@@ -108,7 +108,7 @@
iState=Arrive;
}
- while(iState=Navigation)
+ while(iState==Navigation)
{
if(distObsGauche>20||distObsDroite>20)
iState=Rotation;
@@ -118,13 +118,13 @@
iState=Arrive;
}
- while(iState=Arrivee)
+ while(iState==Arrive)
{
if(SwitchUp==1)
iState=Depart;
}
- while(iState=Evitement)
+ while(iState==Evitement)
{
if(distObsGauche<20||distObsDroite<20)
iState=Rotation;
@@ -134,7 +134,7 @@
iState=Arrive;
}
- while(iState=Rotation)
+ while(iState==Rotation)
{
if(distObsGauche>40&&distObsDroite>40)
iState=Navigation;