Problem with code

analogWrite (speedA, 1000);

You may want to look at the documentation for analogWrite.