Keyestudio KS0436 Kit Manual page 276

Table of Contents

Advertisement

{
ask_pin_F();
if(Fspeed < 10)
{
stop();
delay(100);
back();
delay(200);
}
if(Fspeed < 25)
{
stop();
left();
delay(200);
ask_pin_F();
Lspeed = Fspeed;
right();
delay(400);
ask_pin_F();
Rspeed = Fspeed;
// read the front distance
//if front distance is less than 10cm
// clear the output data
// backward 0.2 second
//if front distance is less than25cm
// clear the output data
// read the front distance
//read the front distance
276

Advertisement

Table of Contents
loading

Table of Contents