How to clear Bluetooth Buffer

PaulS:

When I send a short command like an "w" it turn right for a short time.

on most phones, it will repeat "w" and send it as an 8 bit byte over and over....

so your buffer fills up with "wwwww" etc and that's what you'll get.

YourSerial.flush();

will empty the buffer.