Browse Source

Update v1.1

master
cs161079 5 years ago
parent
commit
f3766de54f
  1. 6
      autonomousCar/autonomousCar.ino

6
autonomousCar/autonomousCar.ino

@ -92,6 +92,11 @@ void turnServo(int from, int deg){
}
}
void serialFlush(){
while(Serial.available() > 0) {
char t = Serial.read();
}
}
/*
* Setup Wiring Components
*/
@ -300,6 +305,7 @@ int Serial_Input()
//Serial.print("Value:");
//Serial.println(number);
// clear the string for new input:
serialFlush();
}
// if you get a newline, print the string, then the string's value:
}

Loading…
Cancel
Save