Browse Source

Change high and low values

master
parent
commit
9436b73651
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pid-example/pid-example.ino

+ 2
- 2
pid-example/pid-example.ino View File

@@ -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);
}


Loading…
Cancel
Save