just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
45:a3b984a79d5d
Parent:
44:46e25fa1669b
Child:
46:90516893793a
--- a/elasticLoop.cpp	Mon Mar 31 10:57:35 2014 +0000
+++ b/elasticLoop.cpp	Tue Apr 01 10:08:49 2014 +0000
@@ -34,7 +34,7 @@
     startSpeed=_initSpeed;
 
 // (2) Initialize common variables of all blobs (base class):
-    initCommonVariables();
+//   initCommonVariables();
 
     // (3) initialize common variables for the elastic blob types:
     slidingDirection=true; //  (will change when touching wall)
@@ -61,6 +61,7 @@
             // Color: (use parameter in the future):
             //setColor(0x07);//0x04+0x02>>i);
             setColor(0x04);
+            blueTouch=true;
 
             // default (initial) shape (the scafold belongs to the base class):
             startRadius=400;
@@ -114,7 +115,8 @@
             sprintf(spotName,"loop_contract"); //this is an relaxing elastic loop
 
             setColor(0x07);//0x04+0x02>>i);
-
+             blueTouch=true;
+             
             // default (initial) shape:
             startRadius =400;
             bluePrint.buildCircularScafold(startRadius,  vector2Dd(0,0), 40); //(float _radius, vector2Dd _pos,vector2D _vel, int _numScafoldPoints);
@@ -166,6 +168,7 @@
 
             //setColor(0x07);//0x04+0x02>>i);
             setColor(0x04);
+             blueTouch=true;
 
             // default (initial) shape:
             startRadius=400;
@@ -217,6 +220,7 @@
         
                       //setColor(0x07);//0x04+0x02>>i);
                       setColor(0x04);
+                       blueTouch=true;
 
                       // default (initial) shape:
                       startRadius=150;
@@ -266,6 +270,7 @@
 
             //setColor(0x07);//0x04+0x02>>i);
             setColor(0x04);
+             blueTouch=true;
 
             // default (initial) shape:
             startRadius=100;
@@ -315,7 +320,8 @@
             sprintf(spotName,"following_fast");
 
             setColor(0x07);//0x04+0x02>>i);
-
+            blueTouch=true;
+            
             // default (initial) shape:
             startRadius=100;
             bluePrint.buildCircularScafold(startRadius,  vector2Dd(0,0), 30); //(float _radius, vector2Dd _pos,vector2D _vel, int _numScafoldPoints);
@@ -364,7 +370,8 @@
             sprintf(spotName,"bouncing");
 
             setColor(0x07);//0x04+0x02>>i);
-
+             blueTouch=true;
+             
             // default (initial) shape:
             startRadius=70;
             bluePrint.buildCircularScafold(startRadius, vector2Dd(0,0), 20); //(float _radius, vector2Dd _pos,vector2D _vel, int _numScafoldPoints);