Keyestudio KS0436 Kit Manual page 277

Table of Contents

Advertisement

if(Lspeed > Rspeed)
speed
{
left();
delay(400);
front();
}
if(Lspeed <= Rspeed)
right speed
{
front();
}
if (Lspeed < 10 && Rspeed < 10)
side distance are less than 10cm
{
back();
}
}
else
{
//if left speed is greater than right
//if left speed is less than or equal to
//go back
//if front distance is within 25cm
//if both left and right
277

Advertisement

Table of Contents
loading

Table of Contents