]> git.piffa.net Git - aerei/commitdiff
errata
authoreaman <andrea@piffa.net>
Mon, 16 Jan 2017 14:59:05 +0000 (15:59 +0100)
committereaman <andrea@piffa.net>
Mon, 16 Jan 2017 14:59:05 +0000 (15:59 +0100)
zeta/zeta.ino
zeta_5_state_no_aserial/zeta_5_state_no_aserial.ino

index 41bdfa3f7034f0ffcdd7760df884607ed7b95d92..af87d04f2144dbd082f0f034584aa202a93dea47 100644 (file)
@@ -58,10 +58,10 @@ void loop() {
 
   switch (state) {
     case idle:
-      rwhite.UD(2);  // Utilizza il coseno
-      lwhite.UD(2);  // Bisognerebbe evitare di calcolarlo 4 volte uguale
-      ltp.UD(2);
-      rtp.UD(2);
+      rwhite.UD(2000);  // Utilizza il coseno
+      lwhite.UD(2000);  // Bisognerebbe evitare di calcolarlo 4 volte uguale
+      ltp.UD(2000);
+      rtp.UD(2000);
       break;
 
     case normal:
@@ -78,7 +78,7 @@ void loop() {
       right.Blink(1120 - 4 * thr );
       digitalWrite(ltail, !digitalRead(ltail));
       digitalWrite(3, !digitalRead(3));
-      delay(pausa);
+  
 
       left.Blink(1120 - 4 * thr );
       digitalWrite(rtail, !digitalRead(rtail));
index 41bdfa3f7034f0ffcdd7760df884607ed7b95d92..af87d04f2144dbd082f0f034584aa202a93dea47 100644 (file)
@@ -58,10 +58,10 @@ void loop() {
 
   switch (state) {
     case idle:
-      rwhite.UD(2);  // Utilizza il coseno
-      lwhite.UD(2);  // Bisognerebbe evitare di calcolarlo 4 volte uguale
-      ltp.UD(2);
-      rtp.UD(2);
+      rwhite.UD(2000);  // Utilizza il coseno
+      lwhite.UD(2000);  // Bisognerebbe evitare di calcolarlo 4 volte uguale
+      ltp.UD(2000);
+      rtp.UD(2000);
       break;
 
     case normal:
@@ -78,7 +78,7 @@ void loop() {
       right.Blink(1120 - 4 * thr );
       digitalWrite(ltail, !digitalRead(ltail));
       digitalWrite(3, !digitalRead(3));
-      delay(pausa);
+  
 
       left.Blink(1120 - 4 * thr );
       digitalWrite(rtail, !digitalRead(rtail));