Working on micro_motors.ino
This commit is contained in:
@@ -162,10 +162,18 @@ if (WiFi.status() == WL_CONNECTED) {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
|
receiveSensorData();
|
||||||
|
while ((sens_FL + sens_FR) / 2 > 174) {
|
||||||
|
motorsGo(180);
|
||||||
|
receiveSensorData();
|
||||||
|
}
|
||||||
|
|
||||||
|
motorsStop();
|
||||||
|
delay(1000);
|
||||||
|
Go90right();
|
||||||
|
|
||||||
// motorsTest();
|
// motorsTest();
|
||||||
sensorsTest();
|
// sensorsTest();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user