From: Andrea Manni Date: Thu, 6 Apr 2017 10:24:22 +0000 (+0200) Subject: raw X-Git-Url: http://git.piffa.net/web?p=rover;a=commitdiff_plain;h=aec24e1fc4aff719b970951f624abf56da7f5f36 raw --- diff --git a/prototypes/macchina/raw/raw.ino b/prototypes/macchina/raw/raw.ino index 17b324b..3261b98 100644 --- a/prototypes/macchina/raw/raw.ino +++ b/prototypes/macchina/raw/raw.ino @@ -13,7 +13,7 @@ Codice: http://git.andreamanni.com/web?p=rove #include "rover.h" #include "Servo.h" -int rotPausa = 100; // Pausa per una rotazione di ~90' +int rotPausa = 1000; // Pausa per una rotazione di ~90' void setup() { @@ -25,8 +25,8 @@ void setup() void loop() { // Fintanto che non ci sono ostacoli: avanti - while (check() = 0) { - avanti() + while (distanceCheck() == 0) { + avanti(); } // Se c'e' un ostacolo: ferma e gira stop();