I need your help in checking my code.Urgent please.

Antony289:
Look, please, at the very beginning, after my clarification text, I updated the attached file, it is called * ROBOT_3_eng.ino in this file I translated everything into English.

Once again I attach this file.

Thank you. I do appreciate that it was troublesome to have to translate the comments.

What I'm not clear about now is whether the program in Reply #39 takes account of all the suggestions that have already been made?

If so (and I do hope it does) then please tell us exactly what it does and what you want it to do that is different.

...R

TolpuddleSartre:

void RIGHT()                          /////////////////////////////////////block for turning RIGHT

{analogWrite(leftF,HIGH);



is seen by the compiler as 

void RIGHT()                          /////////////////////////////////////block for turning RIGHT
      {analogWrite(leftF,1);



How fast is that going to move your motor?

Not very fast, medium

Antony289:
Not very fast, medium

Really?
I'd say "barely / not at all"

Do I need to change something? Or fix it?

Antony289:
Do I need to change something? Or fix it?

I have absolutely no idea - you're the one with the hardware to test it on.

Antony289:
Do I need to change something? Or fix it?

(itWorksLikeYouWantItTo) ? no : yes;

Change

analogWrite(leftF,HIGH);

...to

analogWrite(leftF,255);