]> git.piffa.net Git - rover/blobdiff - prototypes/macchina/raw/raw.ino
raw
[rover] / prototypes / macchina / raw / raw.ino
index 17b324b2f4b942ee0dff8b00af760f1b0a35baee..3261b98f49d9b99af4d2e6a639ad9a10646a46ca 100644 (file)
@@ -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();