My Version of CreaBotLib

Fork of CreaBotLib by CreaLab

Revision:
4:531b1120d3ec
Parent:
3:891b6a138383
Child:
5:efe80c5db389
--- a/CreaBot.cpp	Fri Jul 28 13:45:20 2017 +0000
+++ b/CreaBot.cpp	Thu Aug 31 08:15:00 2017 +0000
@@ -250,6 +250,15 @@
     }
 }
 
+void Creabot::spirale(float b, float turns) {
+    float r=0.0;
+    float angle = 0.0f;
+    while(angle < 360.0*turns) {
+        this->moveAndWait(RIGHT, 10, r);
+        r=r+b;
+    }
+}
+
 void Creabot::callBackLeft()
 {
     callLeft=true;