   digitalWrite(pinRb,HIGH);
   DirectionL=true;
   DirectionR=false;
-  analogWrite(EA,outputL);
-  analogWrite(EB,outputR);
+  drive();
 }
 
 void stopfb()

  digitalWrite(pinRb,LOW);
  DirectionL=true;
  DirectionR=true;
  analogWrite(EA,outputL);
  analogWrite(EB,outputR);  
}

void back()

  DirectionlastR=DirectionR;
}

void drive()
{
  analogWrite(EA,outputL);
  analogWrite(EB,outputR); 
}
void forbac()
{
  digitalWrite(trigpin,LOW);
