Keyestudio KS0436 Kit Manual page 289

Table of Contents

Advertisement

void loop()
{
ask_pin_F();
if(Fspeed >0&&Fspeed <= 15)
than 10cm
{
back();
}
if(Fspeed >15&&Fspeed <= 20)
less than 10cm
{
stop();
}
if(Fspeed >20&&Fspeed <= 40)
less than 10cm
{
front();
}
if(Fspeed >40)
{
stop();
}
// read the front distance
//if front distance is less than 10cm
//if front distance is less
//if front distance is
//if front distance is
289

Advertisement

Table of Contents
loading

Table of Contents