Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
html *****
*****************
while(s1==1 && s2==0) //in case the bot shifts towards right(of the line)
{
m0=0;
m1=0;
m2=1;
m3=0;
}
while(s1==0 && s2==1) //in case the bot shifts towards left(of the line)
{
m0=1;
m1=0;
m2=0;
m3=0;
}
while(s1==0 && s2==0) //in case the bot wanders into the arena...this problem ca
n be overcomed by using three sensors.
{
m0=0;
m1=0;
m2=0;
m3=0;
}
}
}
--------------------------------------------------------------------------------
-----------------------
--------------------------------------------------------------------------------
-----------------------