pattern v3

Fork of PATTERN by Projet robot

Files at this revision

API Documentation at this revision

Comitter:
fab16
Date:
Sat Mar 18 15:08:21 2017 +0000
Parent:
0:42a271a32851
Commit message:
v3

Changed in this revision

Pattern.cpp Show annotated file Show diff for this revision Revisions of this file
Pattern.h Show annotated file Show diff for this revision Revisions of this file
--- a/Pattern.cpp	Thu Mar 02 12:37:43 2017 +0000
+++ b/Pattern.cpp	Sat Mar 18 15:08:21 2017 +0000
@@ -11,6 +11,31 @@
     
 }
 
+void Pattern::rectangle(){
+
+    m3piP.forward(this->vitesse);
+    wait(2);
+    m3piP.right(this->vitesse);
+    wait(0.9);
+    
+    m3piP.forward(this->vitesse);
+    wait(3.5);
+    m3piP.right(this->vitesse);
+    wait(0.9);
+    
+    m3piP.forward(this->vitesse);
+    wait(2);
+    m3piP.right(this->vitesse);
+    wait(0.9);
+    
+    m3piP.forward(this->vitesse);
+    wait(3.5);
+    m3piP.right(this->vitesse);
+    wait(0.9);
+    
+    m3piP.stop();
+       
+}
 
 void Pattern::carre(){
 
--- a/Pattern.h	Thu Mar 02 12:37:43 2017 +0000
+++ b/Pattern.h	Sat Mar 18 15:08:21 2017 +0000
@@ -12,6 +12,7 @@
         ~Pattern();
         void carre();
         void triangle();
+        void rectangle();
         void etoile();
     
 };
\ No newline at end of file