From: Andrea Manni Date: Mon, 3 Apr 2017 12:30:27 +0000 (+0200) Subject: Metodo Stop X-Git-Url: http://git.piffa.net/web?a=commitdiff_plain;h=c85df932308823bd68baf91f22a4617b4a45a00c;p=rover Metodo Stop --- diff --git a/prototypes/motor/drive_obj/drive_obj.ino b/prototypes/motor/drive_obj/drive_obj.ino index 50b9a19..a19c323 100644 --- a/prototypes/motor/drive_obj/drive_obj.ino +++ b/prototypes/motor/drive_obj/drive_obj.ino @@ -12,7 +12,6 @@ Guida 2WD composta da 2 motori #include void setup() { -// abilita(); } car macchina ; @@ -20,31 +19,28 @@ car macchina ; void loop() { //// Avanti macchina.avanti(); -// digitalWrite(in1,LOW); -// digitalWrite(in2,HIGH); -// digitalWrite(enA,HIGH); delay(2000); -//// Stop -// car.stop(); -// delay(1000); -// +// Stop + macchina.stop(); + delay(1000); + //// TurnSX -// car.giraSX(); +// macchina.giraSX(); // delay(1000); // //// Indietro -// car.indietro(); +// macchina.indietro(); // delay(2000); //// Stop -// car.stop(); +// macchina.stop(); // delay(1000); // //// TurnDX -// car.giraDX(); +// macchina.giraDX(); // delay(1000); // //// Stop -// car.stop(); +// macchina.stop(); // delay(1000); }