diff --git a/pid-example/pid-example.ino b/pid-example/pid-example.ino index c87bbc9..dc36980 100644 --- a/pid-example/pid-example.ino +++ b/pid-example/pid-example.ino @@ -86,8 +86,8 @@ void loop() { } void forward_brake(int posa, int posb) { //set the appropriate values for aphase and bphase so that the robot goes straight - digitalWrite(aphase, LOW); - digitalWrite(bphase, HIGH); + digitalWrite(aphase, HIGH); + digitalWrite(bphase, LOW ); analogWrite(aenbl, posa); analogWrite(benbl, posb); }