X-Git-Url: http://git.piffa.net/web?p=rover;a=blobdiff_plain;f=prototypes%2Fmacchina%2Fraw%2Fraw.ino;fp=prototypes%2Fmacchina%2Fraw%2Fraw.ino;h=3261b98f49d9b99af4d2e6a639ad9a10646a46ca;hp=17b324b2f4b942ee0dff8b00af760f1b0a35baee;hb=aec24e1fc4aff719b970951f624abf56da7f5f36;hpb=e064d1ab908e7672e00c721a76360276ebcb6d35 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();